Search code examples
delphidialogfont-sizepixel-fonts

Make dialogs compatible with "large fonts".


Which do you think are best practices for making a windows dialog compatible both with standard fonts (96 dpi) and "large fonts" setting (120 dpi) so that objects don't overlap or get cut off?

BTW: Just in case it's relevant, I'm interested in doing this for Delphi dialogs.

Thanks in advance!


Solution

  • There's a pretty good article in the D2007 help file, under "Considerations When Dynamically Resizing Forms and Controls" (note that the URL is to the help file itself, and not a web page as such).

    The same topic, under the same name, can be found in the D2010 help file (same caveat about the URL as above), or on the docwiki.

    It also is worthwhile (at least a little bit) to examine TForm.Scaled and TForm.ScaleBy.