> Hi, > > I have a from with arrangement=Vertical. I add some buttons in code like: > button1 = new Button(Form1) > button2 = new Button(Form1) > ..... > Of course when program starts, the buttons are displayed from top to bottom > with order: button1 => button2 ..... > I want to rearrange those buttons with new order like button1 -> button3 -> > button2... I tried reparent them out (into an hidden container) and > reparent them again into my form with new order. > Is there an other and better way to rearrange those buttons in run-time > with new order?
Yep. By using the Lower() and Raise() method, or by setting the Next and Previous properties (in Gambas 3). Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Index, Search & Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. Free Software Download: http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user