ScaleMode property


Available for Window, MDIWindow and Picture objects.

Read/Write at design time
Read only at run time

Specifies the scale mode for the object and all of its children. It can be one of the following values:

0 ecPixels
1 ecTwips (default)

The value of this property is used to set or get the dimensions of the object (i.e. the Left, Height, Top and Width properties).


REMARKS
: Pixels are the logical units in which the screen is divided, so an object of 1024 pixels wide takes always 1024 units of the screen. If you have a screen lower resolution (i.e. 800 pixels width), part of the object will not be visible. On the other hand, twips may vary when converted to logical units depending on the screen resolution and/or the font size (small or large). One inch is equal to 1440 twips.

IMPORTANT: DialogBox objects and all their children are always measured in dialog units. When a Picture object is inside a DialogBox object, its ScaleMode property is always set to ecPixels, and it cannot be changed.