[DUG] Window resizing
jamessugrue at xtra.co.nz
jamessugrue at xtra.co.nz
Thu Aug 18 21:09:35 NZST 2005
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
>
More information about the Delphi
mailing list