┌──────────────────────────────────────────────────────────────────────┐ │Your dialog windows must be smaller than 320x213 in dialog unit to fit│ │in a VGA screen (640x480). │ └──────────────────────────────────────────────────────────────────────┘
DBCS OS/2 PM supports DBCS-VGA (640x480) in addition to the PS/55 high resolution (1040x768). If you assume only the PS/55 high resolution (1040x768) for DBCS OS/2, you may need to change the size of dialog windows to fit them into VGA screen.
Dialog units used in dialog templates are based on the cell size of the system font. A unit in the horizontal direction is 1/4 the system font width, and the one in vertical direction is 1/8 the system font height. You need to pay attention to the dialog units, since:
Note: DBCS fonts of less than 14 points in PS/55 high resolution and 18 points in DBCS VGA (the maximum size of font in pixcel is 13x28) can be the system font.
The following shows possible values of the screen size in dialog units.
┌────────────────────┬───────────────┬───────────────┬───────────────┐│Display adapter │Size in pixel │System font │Size in dialog │ │ │ │Size in pixel │unit │ ├────────────────────┼───────────────┼───────────────┼───────────────┤ │PS/55 │1040 x 768 │12 x 24 (18) │346.7 x 256 │ │high-resolution │ │ │ │ │(DBCS OS/2 V1.x) │ │ │ │ ├────────────────────┼───────────────┼───────────────┼───────────────┤ │PS/55 DA/2 │1040 x 768 │11 x 24 (12) │378 x 256 │ ├────────────────────┼───────────────┼───────────────┼───────────────┤ │XGA (DBCS PM) │1024 x 768 │11 x 24 (12) │378 x 256 │ ├────────────────────┼───────────────┼───────────────┼───────────────┤ │VGA (SBCS PM) │640 x 480 │6 x 16 (10) │426.7 x 240 │ ├────────────────────┼───────────────┼───────────────┼───────────────┤ │VGA (DBCS PM) │640 x 480 │8 x 18 (12) │320 x 213.3 │ └────────────────────┴───────────────┴───────────────┴───────────────┘