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.
| Constant | Value | Description |
|---|---|---|
| vbScaledPixels | -1 | Pixels, scaled by the system DPI factor. (twinBASIC addition.) |
| vbUser | 0 | A user-defined coordinate system set explicitly with Scale. |
| vbTwips | 1 | Twips — 1/1440 inch (the default). |
| vbPoints | 2 | Points — 1/72 inch. |
| vbPixels | 3 | Pixels of the underlying device. |
| vbCharacters | 4 | Characters of the current font (12 horizontal, 24 vertical points). |
| vbInches | 5 | Inches. |
| vbMillimeters | 6 | Millimetres. |
| vbCentimeters | 7 | Centimetres. |
| vbHimetric | 8 | HiMetric units — 0.01 millimetre. |
| vbContainerPosition | 9 | The container’s coordinates, used for positioning. |
| vbContainerSize | 10 | The container’s coordinates, used for sizing. |