Fitting Dialog Windows into a PM Screen

┌──────────────────────────────────────────────────────────────────────┐
│Dialog windows must be smaller than 320x213 in dialog unit to fit in a│
│DBCS VGA screen (640x480).                                            │
└──────────────────────────────────────────────────────────────────────┘

DBCS IBM OS/2 Warp supports DBCS-VGA (640x480) in addition to the SVGA, XGA and PS/55 high-resolution(1040x768).

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 of the system font width, and the one in vertical direction is 1/8 of the system font height. An application programmer needs to pay attention to the dialog units for the following reasons:

The following shows possible values of the screen size in dialog units.

┌───────────────┬───────────────┬───────────────┬───────────────┐│Display adapter│Size (in pixel)│System font (in│Size (in dialog│
│               │               │pixel)         │unit)          │
├───────────────┼───────────────┼───────────────┼───────────────┤
│PS/55 DA/2     │1040 x 768     │11 x 24 (12)   │378 x 256      │
├───────────────┼───────────────┼───────────────┼───────────────┤
│XGA            │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    │
└───────────────┴───────────────┴───────────────┴───────────────┘


[Back: Loading Appropriate PII Data]
[Next: Putting Mnemonics for DBCS Languages in Resources]