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

-- 
View this message in context: 
http://old.nabble.com/INITIAL-Location-of-Form-tp33224807p33224807.html
Sent from the gambas-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to