ToolButton order different after compilation then in designer lazarus / 31-LCL ---------------------------------------------------------------------- krzynio · 2013-05-25 18:26 Lazarus 1.1 on  Windows 7 x64. Toolbar with several ToolButtons. After compilation toolbutton order on the toolbar seems to be random and completely different than in designer. I found a path and info that problem was fixed in version 0.9.23 here: Quotehttp://bugs.freepascal.org/view.php?id=8832but in my case it still exists. I also compiled the source on LMDE x64 and there everything is fine. Can somebody help or suggest any solution? Please. Now I am using panel with bitbuttons but it is rather temporary solution which doesn't automatically change position (do not move buttons from right to left) when a button in the middle is hidden. Regards, Krzysztof ---------------------------------------------------------------------- Blaazen · 2013-05-25 18:48 I experienced this in past too. When you want to configure tool buttons and you make some button hidden and then visible, it does not appear on its original position but always in the end. ---------------------------------------------------------------------- krzynio · 2013-05-25 18:57 Thanks for quick answer! This may be a trail for me. I will try to control toolbutton order by order of hiding and making visible buttons. ---------------------------------------------------------------------- krzynio · 2013-05-25 19:24 I tested this after you suggestion. It seems that you are right. Original order is destroyed after hiding and making visible the button. When I had replaced Visible property with Enabled the order was not disrupted. But after hiding and making visible the order seems to be random and not always last unhidden button is positioned at the end. I tested it by hiding and making visible a button from the middle as last operation in code and order was changed but button was moved only one position right not to the end. I did it also with another button from the middle and its position was unchanged. ---------------------------------------------------------------------- Blaazen · 2013-05-25 19:28 IIRC there is some trick that you can make all buttons invisible and then you make them visible in reversed order and they will appear in the right order. It worked for me in past. It is probably the same what is mentioned in that bugreport. The reason is probably that Lazarus streams the buttons to *.lfm file in order of their creation and not in order of their appearance on a toolbar.