ScaleTop Property (AForm)

Returns or sets the vertical coordinates for the edge of an object when using graphics methods or when positioning controls.

Syntax

Object.ScaleTop [ = fTop ]

The ScaleTop property syntax has the following parts:

 

Name

Type

Description

Object

Control

A control object

fTop

Float

A number specifying the number of units for the horizontal (ScaleLeft) and vertical (ScaleTop) coordinates for the left and top edges of an object when using graphics methods or when positioning controls.

Comments

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.

Example

The following statement changes the AForm's ScaleLeft to 23 of the units specified by the ScaleMode property:

frm1.ScaleTop=23

Applies to

AForm

See Also

CurrentX, CurrentY, Scale, ScaleHeight, ScaleLeft, ScaleMode, ScaleWidth, ScaleX, ScaleY