Returns or sets the horizontal coordinate for the left edge of an object when using graphics methods or when positioning controls.
Object.ScaleLeft [ = fLeft ]
The ScaleLeft property syntax has the following parts:
Name |
Type |
Description |
Object |
Control |
A control object |
fLeft |
Float |
A number specifying the horizontal (ScaleLeft) coordinate for the left edge of an object when using graphics methods or when positioning controls. |
This property is not for MDIForm objects.
Using these properties and the related ScaleHeight and ScaleWidth properties, you can set up a full coordinate system with both positive and negative coordinates. These four Scale properties interact with the ScaleMode property in the following ways:
Setting any other Scale property to any value automatically sets ScaleMode to 0. A ScaleMode of 0 is user-defined.
Setting the ScaleMode property to a number greater than 0 changes ScaleHeight and ScaleWidth to the new unit of measurement and sets ScaleLeft and ScaleTop to 0. The CurrentX and CurrentY property settings change to reflect the new coordinates of the current point.
You can also use the Scale method to set the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties in one statement.
Note: The ScaleLeft and ScaleTop properties aren't the same as the Left and Top properties.
The following statement changes the AForm's ScaleLeft to 22 of the units specified by the ScaleMode property:
frm1.ScaleLeft=22
CurrentX, CurrentY, Scale, ScaleHeight, ScaleMode, ScaleTop, ScaleWidth, ScaleX, ScaleY