Screen metrics |
|
| Top Previous Next | |
Metrics is the term used by Microsoft to describe the characteristics of an output device, such as the display. One display characteristic that can affect your programs in a very visible way is the number of pixels per inch used by the display driver. Windows displays typically use either 96ppi or 120ppi, the latter when the Large Fonts display option is selected.
When large fonts are used, text takes up more space relative to the dialog controls it is displayed in. This can lead to text in a dialog box being truncated if it is run on a system which uses larger fonts than the system on which the dialog box was designed.
There are two solutions you can adopt if your scripts may be run on systems using either small or large fonts. One is to allow plenty of space so that text displays correctly whichever font size is chosen. The other is to use OPTION SCALE, which causes DialogScript to attempt to scale the dialog box to the right size for the system on which the program is being run.