[DUG] Resizing forms

Rob van der Linde robvdl at paradise.net.nz
Mon Jul 31 15:17:02 NZST 2006


Yeah this kind of sucks a bit with the way Delphi and the Windows UI was
designed, where controls are absolutely positioned and with an absolute
size (Not Delphi's fault, but Windows really). If people change their
fonts to Extra Large, or even worse if people change the Font DPI
itself, it screws up many Delphi apps of mine. The Windows UI has been
designed WRONG, it is not multi DPI friendly.

I have been experimenting with GTK+ (v2.x) in Freepascal (not using
Lazarus, just using the GTK+ units directly), and found GTK+ has been
designed in a much better way than Windows, I.E. controls having to be
placed inside other controls such as layout grids, then let the OS do
all the sizing and positioning. This is a similar approach to Java for
those of you that have done some Java stuff. Surely it takes a bit
longer to make your GUI forms that way, but at least you know it will
work with different font sizes. Well, it's not that Delphi will get
redesigned to that approach in a hurry anyway (or at all, being already
too late), but it's still interesting indeed.

On Mon, 2006-07-31 at 14:24 +1200, Sean Cross - CRM wrote:
> Following the recent discussion about large fonts, I came across this
> article.
>  
> http://delphi.about.com/od/standards/a/aa030700a.htm
>  
> Regards
> 
> Sean
> -----------------------------
> Sean Cross
> Systems Development
> 
> Catalyst Risk Management
> PO Box 230
> Napier
> Phone:   06 834 0362
> Mobile:  021 270 3466
> Email:   sean.cross at crm.co.nz 
> http://www.crm.co.nz/
> 
> Offices in Auckland, Napier, Wellington & Christchurch
> 
> Disclaimer:
> "The information contained in this document is confidential to the
> addressee(s) and may be legally privileged. Any view or opinions
> expressed are those of the author and may not be those of CRM. No
> guarantee or representation is made that this communication is free of
> errors, viruses or interference. If you have received this e-mail
> message in error please delete it and notify me. Thank you."
> 
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi



More information about the Delphi mailing list