ScaleMode Property
Object List Next Object
Defined By: Form
Description:
Specifies the standard unit of measurement to be used for coordinates of a
form when drawing or when placing controls.
Settings:
The ScaleMode property settings must be one of the following standard units:
Setting Description
0 User-defined. Uses custom coordinate system specified by changing the value of
one or more scale property (ScaleHeight, ScaleWidth, ScaleLeft, or ScaleTop).
- (Default) Twip (1440 twips per inch.)
- Point (72 points per inch, 1 point per 20 twips).
- Pixel (smallest unit of a monitor or printer based on its resolution).
- Character (horizontal: 12 characters per inch, vertical: 6 characters per
inch).
- Inch (1440 twips per inch).
- Millimeter (5.67 twips per millimeter).
- Centimeter (567 twips per centimeter).
Details:
The dimensions of all forms use the unit of measure specified by ScaleMode,
with one exception. When the ScaleMode property is set to user-defined (0) it
uses the unit of measure set by using one or more of the related ScaleHeight,
ScaleWidth, ScaleLeft, and ScaleTop properties. You can create a coordinate system
complete with negative and positive coordinates by using these four scale
properties.
The ScaleMode property setting directly affects the settings of the four scale
properties. Specifically, setting the ScaleMode to any number greater than 0
sets ScaleLeft and ScaleTop to 0. It also changes ScaleHeight and ScaleWidth to
the new unit of measurement, and changes the Current X and Current Y settings
to reflect the new coordinates of the current point. The ScaleMode property is
automatically set to 0 if the value changes in any one of these scale properties.
Note: Keep in mind that changing the ScaleMode property does not change the actual
size of objects, it only changes the unit of measure used for that object.
If the form argument is omitted, the ScaleMode property changes for the
current form.
Data Type: Enum (ScaleMode)
See Also:
DrawMode , DrawStyle properties; FillColor property; ForeColor property; Scale Method, ScaleLeft, ScaleTop properties