Recent

Author Topic: Order in the ribbon  (Read 1124 times)

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Order in the ribbon
« on: March 24, 2020, 05:08:57 pm »
I have build  a ribbon using the BGRA Control unit.
It all works as programmed, but I have a flaw in it.
Not every part of the ribbon is displayed in the right order.

How can I order it correctly?

Look for the attachments here:

https://forum.lazarus.freepascal.org/index.php?topic=49003.0
« Last Edit: March 24, 2020, 05:24:30 pm by madref »
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Order in the ribbon
« Reply #1 on: March 27, 2020, 07:44:52 pm »
I have been thinking about my problem for a while now and came up with this solution
I now calculate the ribbons that must be in front of the part I need.
Then I use the Left-property and set it to the calculated width of all the ribbons in front of that.


And whale...... it's where it should be.


Not pritty, but effective
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

circular

  • Hero Member
  • *****
  • Posts: 4219
    • Personal webpage
Re: Order in the ribbon
« Reply #2 on: April 01, 2020, 11:36:37 am »
I see. Yeah I only found that solution for my toolbars as well.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018