Lazarus

Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: madref on March 24, 2020, 05:08:57 pm

Title: Order in the ribbon
Post by: madref 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 (https://forum.lazarus.freepascal.org/index.php?topic=49003.0)
Title: Re: Order in the ribbon
Post by: madref 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
Title: Re: Order in the ribbon
Post by: circular on April 01, 2020, 11:36:37 am
I see. Yeah I only found that solution for my toolbars as well.
TinyPortal © 2005-2018