Is there a function or method to call to Centralise a TForm ofer its parent
form ??
Hope so.
Chris
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Centralise Form over parent ... easy way ??
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
Centralise Form over parent ... easy way ??
Chris,
> Is there a function or method to call to Centralise a TForm ofer its
> parent form ??
Setting the property lCentered from TForm gets the form centered on the
screen. If you need to center if relative to another form, you may use the
function:
CenterWindow( hWindow, [hBaseWindow] )
You may call it from the form's OnInitialize event:
METHOD FormInitialize( oSender ) CLASS TForm2
CenterWindow( ::Handle, ::oParent:Handle )
RETURN Nil
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> Is there a function or method to call to Centralise a TForm ofer its
> parent form ??
Setting the property lCentered from TForm gets the form centered on the
screen. If you need to center if relative to another form, you may use the
function:
CenterWindow( hWindow, [hBaseWindow] )
You may call it from the form's OnInitialize event:
METHOD FormInitialize( oSender ) CLASS TForm2
CenterWindow( ::Handle, ::oParent:Handle )
RETURN Nil
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
Centralise Form over parent ... easy way ??
Jose,
Works a treat ... thanks.
Am shipping my first small Xailer app today ... a 'Goods In delivery Diary'
for a wholesale company.
I think I can now do most of the techniques I need for bigger apps as well.
Xailer ... great piece of work.
Chris
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:4651e1c9$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
>> Is there a function or method to call to Centralise a TForm ofer its
>> parent form ??
>
> Setting the property lCentered from TForm gets the form centered on the
> screen. If you need to center if relative to another form, you may use the
> function:
>
> CenterWindow( hWindow, [hBaseWindow] )
>
>
> You may call it from the form's OnInitialize event:
>
> METHOD FormInitialize( oSender ) CLASS TForm2
> CenterWindow( ::Handle, ::oParent:Handle )
> RETURN Nil
>
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
Works a treat ... thanks.
Am shipping my first small Xailer app today ... a 'Goods In delivery Diary'
for a wholesale company.
I think I can now do most of the techniques I need for bigger apps as well.
Xailer ... great piece of work.
Chris
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:4651e1c9$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
>> Is there a function or method to call to Centralise a TForm ofer its
>> parent form ??
>
> Setting the property lCentered from TForm gets the form centered on the
> screen. If you need to center if relative to another form, you may use the
> function:
>
> CenterWindow( hWindow, [hBaseWindow] )
>
>
> You may call it from the form's OnInitialize event:
>
> METHOD FormInitialize( oSender ) CLASS TForm2
> CenterWindow( ::Handle, ::oParent:Handle )
> RETURN Nil
>
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>