Jump to content

TUniToolBar


shawdown

Recommended Posts

Hello.

 

In certain situation of my project I need to create some TUniToolBar in runtime and inside this toolbar "parent" I create some TUniSpeedButton.

 

Until version 1.0.2.1449 worked perfectly as in the image below.

 

Note that clusters always exit at the top because they are created and linked to their respective ToolBar first.

 

 

This version is working perfectly.

* Always before the separator

 

post-715-0-87694100-1524661404_thumb.png post-715-0-79430600-1524661412_thumb.png

 

 

Now look at the images below as it appears in version 1.0.2.1450.

post-715-0-01390700-1524661647_thumb.png post-715-0-27704800-1524661398_thumb.png

 

 

 

 

 

Since my thanks and congratulations for the tool and support.

Link to comment
Share on other sites

  • Administrators

Hi,

 

Problem here is that toolbar is designed to arrange controls horizontally. TUniToolbar sorts components based on "Left" property. In your setup components are given a random order because all "lefts" are equal to zero and QuickSort algorithm changes their initial order.  It was working in build 1449 because of a bug avoiding sorting the components.

 

That said, I will add a workaround for this in next build. It will check create order of component when both has same Left value.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...