Página 1 de 1
nMaxPos Property
Publicado: Mar Abr 24, 2012 2:16 pm
por emeasoft
Hello Xailers,
Whats the use of this properties, nMaxPosX and nMaxPosY?
Wasn't it suppose to lock a maximum position of the form on the screen?
How do I use it? Because Im trying to lock the position of a form on the screen... Or is there any other to do that?
Thanks,
Juliano
nMaxPos Property
Publicado: Mié Abr 25, 2012 12:34 pm
por ignacio
emeasoft escribió el mar, 24 abril 2012 14:16Hello Xailers,
Whats the use of this properties, nMaxPosX and nMaxPosY?
Wasn't it suppose to lock a maximum position of the form on the screen?
How do I use it? Because Im trying to lock the position of a form on the screen... Or is there any other to do that?
Thanks,
Juliano
To lock the position of a form the best way to do it is changing its nBorderStyle to bsSPLASH. BTW, you should put a close button.
Regards,
nMaxPos Property
Publicado: Mié Abr 25, 2012 5:09 pm
por jfgimenez
Juliano,
> Whats the use of this properties, nMaxPosX and nMaxPosY?
> Wasn't it suppose to lock a maximum position of the form on
> the screen?
>
> How do I use it?
Those properties set the position, in screen coordinates, of the
upper-left corner of the form when (and only) it is maximized. If you
want to lock the form in a range of screen coordinates, you may write
the method WMMoving() in your form. See the source code of TCalculator
(calculator.prg).
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
nMaxPos Property
Publicado: Mié Abr 25, 2012 7:40 pm
por emeasoft
Thanks for the help Jose and Ignacio,
It helped me solve our issue.
Regards,
Juliano