Defines the coordinate system for an object.
Object.Scale( [fX1] [,fY1] [,fX2] [,fY2] )
The Scale method syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
fX1 |
Val Variant |
The horizontal (x-axis) coordinate that defines the upper-left corner of object. If omitted, the second set of coordinates must also be omitted. |
fY1 |
Val Variant |
The vertical (y-axis) coordinate that defines the upper-left corner of object. |
fX2 |
Val Variant |
The horizontal (x-axis) coordinate that defines the lower-right corner of object. If omitted, the first set of coordinates must also be omitted. |
fY2 |
Val Variant |
The vertical (y-axis) coordinate that defines the lower-right corner of object. |
The Scale method enables you to reset the coordinate system to any scale you choose. Scale affects the coordinate system for both run-time graphics statements and the placement of controls.
If Scale is used with no arguments (both sets of coordinates omitted), it resets the coordinate system to twips.
The following statement resets the coordinate system on the AForm to that which spans from x1=50 units and y1=60 units and ending at x2=270 and y2=280:
frm1.Scale(50,60,270,280)
CurrentX, CurrentY, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, ScaleX, ScaleY