Skip to content

ScaleModeConstants

Measurement-unit values for the ScaleMode property of forms and containers, controlling the units used by the Scale, CurrentX, CurrentY, Width, and Height properties.

ConstantValueDescription
vbScaledPixels-1Pixels, scaled by the system DPI factor. (twinBASIC addition.)
vbUser0A user-defined coordinate system set explicitly with Scale.
vbTwips1Twips --- 1/1440 inch (the default).
vbPoints2Points --- 1/72 inch.
vbPixels3Pixels of the underlying device.
vbCharacters4Characters of the current font (12 horizontal, 24 vertical points).
vbInches5Inches.
vbMillimeters6Millimetres.
vbCentimeters7Centimetres.
vbHimetric8HiMetric units --- 0.01 millimetre.
vbContainerPosition9The container's coordinates, used for positioning.
vbContainerSize10The container's coordinates, used for sizing.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author