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).

  1. (Default) Twip (1440 twips per inch.)

  2. Point (72 points per inch, 1 point per 20 twips).

  3. Pixel (smallest unit of a monitor or printer based on its resolution).

  4. Character (horizontal: 12 characters per inch, vertical: 6 characters per inch).

  5. Inch (1440 twips per inch).

  6. Millimeter (5.67 twips per millimeter).

  7. 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