[Gambas-user] X coordinate of a Form Frame. My Second Problem.
jbskaggs
jbskaggs at ...1871...
Mon Apr 13 03:48:10 CEST 2009
Have you tried "me.center"?
agrgal wrote:
>
> I wrote some code to center a Form window, even the Desktop Size is
> different. Here it is:
>
> <p><code> FMain.X = Int((Desktop.Width - FMain.Width) / 2)</code></p>
> <p><code>FMain.Y = Int((Desktop.Height - FMain.Height) / 2)</code></p>
>
> Meanwhile the Form is resized regarding to the Y coordinate, it doesn't
> work as well for the X coordinate. Why? It seems that FMain.X doesn't
> 'catch up' a number (FMain.X=100 won't work too)
>
> What's happening? Please, help me!!! :-)
>
--
View this message in context: http://www.nabble.com/X-coordinate-of-a-Form-Frame.-My-Second-Problem.-tp23013834p23016773.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list