shawdown Posted April 25, 2018 Share Posted April 25, 2018 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 Now look at the images below as it appears in version 1.0.2.1450. Since my thanks and congratulations for the tool and support. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 25, 2018 Share Posted April 25, 2018 Hi, Can you make a simple testcase for this?! Quote Link to comment Share on other sites More sharing options...
shawdown Posted April 25, 2018 Author Share Posted April 25, 2018 Hi, Can you make a simple testcase for this?! attached. TUniToolBar.zip uniGUI_1.0.2.1449 uniGUI_1.0.2.1450 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 25, 2018 Share Posted April 25, 2018 Thanks for the testcase, I will check Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 25, 2018 Administrators Share Posted April 25, 2018 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. Quote Link to comment Share on other sites More sharing options...
shawdown Posted April 25, 2018 Author Share Posted April 25, 2018 Many thanks for the attention Farshad. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.