Le 29/01/2012 17:45, rogerHPH a écrit : > > How can I position a form at X=0, Y=0 at Program Start, before any other > action, e.g. Timer or button_click ? > I want to use full width of screen, i.e. to push the Ubuntu v11 "Launcher" > bar off the Left Hand side of the screen. > > The Code below will position the Form anywhere on the screen on Program > Start, EXCEPT at 0,0. > Co-ordinates in either SUB -new(), or in SUB Form_Open() work fine, except > for any position under the "Launcher" bar. > > However, the Button_Click works and puts the Form at 0,0 and pushes the > "Launcher" bar off screen, - but I want this to happen at program start ! > > ' Gambas class file > > PUBLIC SUB _new() > FMain.X = 800 > FMain.Y = 600 > END > > PUBLIC SUB Form_Open() > ' FMain.X = 1000 > ' FMain.Y = 100 > END > > PUBLIC SUB Button1_Click() > FMain.X = 0 > FMain.Y = 0 > WAIT 1 > > QUIT > > END >
It may be a bug. Can you post a project, and (of course) tell which version of Gambas you are using? Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user