elphi Tips
From The Cobb Group
Transtor:傅贵
97.10.27自动适应屏幕资源 (Delphi 3, 2.0 and 1.0)
You're always creating software that looks great at your monitor's resolution.
Unfortunately,
if you designed your application on a high-resolution screen, it may be larger
than the available screen space on the client screen. You can solve this
problem by letting Delphi automatically add scroll bars at run-time. However,
using Delphi's automatic scaling produces more professional results. At
run-time, Delphi asks the system for the screen resolution and stores it in
the PixelsPerInch property of your application's Screen object. Next, it uses
the PixelsPerInch value
to resize the form for the current resolution. Here are some things to remember,
to make this technique work effectively: set the Scaled property of your
form(s) to TRUE, use only TrueType fonts, use Windows small fonts when you develop,
and set the AutoScroll property of your form(s)
to FALSE.