Control Reference > VSDraw Control > VSDraw Properties > ScaleLeft Property |
Returns or sets the horizontal coordinate for the left edge of the drawing.
[form!]VSDraw.ScaleLeft[ = value As Double ]
All drawing on the VSDraw control is done in an arbitrary coordinate system, determined by the ScaleWidth, ScaleHeight, ScaleLeft and ScaleTop properties.
For example, the following code sets the origin of the coordinate system to the center of the control, regardless of its physical dimensions:
vsDraw.ScaleLeft = -vsDraw.ScaleWidth / 2
vsDraw.ScaleTop = -vsDraw.ScaleHeight / 2
For more details and a diagram, see the ScaleHeight property.
Note: All scaling properties must be in the range from -32,768 to 32,767. This is a limitation imposed by Windows metafiles. |
Double