Board index » delphi » CONTROLLING FORMS WITH DIFFERENT SCREEN RESOLUTION

CONTROLLING FORMS WITH DIFFERENT SCREEN RESOLUTION

How can I control the size of my forms in Delphi 4 if I have different
screen resolutions.  Can it be done programmatically and/or are their
third party components?
 

Re:CONTROLLING FORMS WITH DIFFERENT SCREEN RESOLUTION


Quote
> How can I control the size of my forms in Delphi 4 if I have different
> screen resolutions.  Can it be done programmatically and/or are their
> third party components?

There are several "sizer" components around but i never used any of
them. I design in large font mode, use only truetype fonts and set the
forms Scaled property to false. I use Align and the Anchors to make
controls automatically resize with the form if that makes sense for
them. If the form is larger than 600*400 i add a check to the forms
OnCreate event that gets the screens workarea (Systemparametersinfo(
SPI_GETWORKAREA, 0, @rect, 0 );). If that turns out to be smaller than
the form i set the forms Autoscroll to true and resize it to the work
area.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!

Other Threads