CurrentX, CurrentY Properties

Specifies the horizontal (X) and vertical (Y) coordinates for the next drawing method. Not available at design time; read/write at run time.

Object.CurrentX[ = nXCoord]
Object.CurrentY[ = nYCoord]

Property Values

  • nXCoord
    Specifies the horizontal coordinate of the form, in the unit of measurement specified by the ScaleMode property of the form.
  • nYCoord
    Specifies the vertical coordinate of the form, in the unit of measurement specified by the ScaleMode property of the form.

Remarks

Coordinates are measured from the upper-left corner of an object. CurrentX is 0 at an object's left edge and CurrentY is 0 at its top edge. Coordinates are expressed in foxels or the current unit of measurement defined by the ScaleMode property.

When you use the following graphics methods, the CurrentX and CurrentY settings are changed as indicated.

Method CurrentX, CurrentY set to
Box The endpoint of the box as specified by the last two arguments.
Circle The center of the object.
Cls 0, 0.
Line The endpoint of the line.
Print The next print position.
Pset The point drawn.

See Also

Box Method | Circle Method | Cls Method | DrawMode Property | DrawStyle Property | Left Property | Line Method | PSet Method | ScaleMode Property | SYS(1270) - Object Location | Top Property

Applies To: Form Object | _SCREEN