[DUG] Window resizing

Alister Christie alister at SalesPartner.co.nz
Fri Aug 19 10:32:41 NZST 2005


Oh yeah - you could try playing with TForm.ChangeScale as well, you can 
throw this into OnCreate to make the form fill the screen better.

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington


jamessugrue at xtra.co.nz wrote:
> John,
> 
> If you do a bit of thinking first, then place controls in containers such as Panels, and set to fill the panel, when the form resizes it will resize automagically.
> 
> You can set panels up with docking on the top and bottom with fixed controls on (or left and right). These will stay the fixed designed height. Then put a panel in the middle set to fill, that will fill when the form is resized etc. You can put expandable controls like datagrid's etc in those.
> 
> 
>>From: "John Bird" <johnkbird at paradise.net.nz>
>>Date: 2005/08/18 Thu PM 06:45:04 GMT+12:00
>>To: "'NZ Borland Developers Group - Delphi List'" <delphi at ns3.123.co.nz>
>>Subject: [DUG] Window resizing
>>
>>So far I have written a few simple apps with fixed form size - I set them to
>>fit 800x600 pixels desktop as that is a safe enough bet for most users.  The
>>windows have a few Delphi standard controls.
>>
>>For users with 1000x800 or larger screens it would be nice for the app to
>>resize the form bigger, but I haven't done this yet.  What are the basic
>>issues?
>>
>>- I imagine detecting the system desktop size, setting form size
>>accordingly, and setting appropriate properties on
>>Controls (mainly stringgrids etc) so they resize and align OK if the form
>>changes size...
>>
>>- Anything else to consider?
>>
>>- How much of a pain is it? - ie if it's a lot I might not bother till the
>>next version
>>
>>John B
>>_______________________________________________
>>Delphi mailing list
>>Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
>>
>>
>>_______________________________________________
>>Delphi mailing list
>>Delphi at ns3.123.co.nz
>>http://ns3.123.co.nz/mailman/listinfo/delphi
>>
> 
> 
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 
> 


More information about the Delphi mailing list