See Also
Apply To
Form, picture box
Description
Determine the horizontal (CurrentX) and vertical (CurrentY) coordinates for the next printing or drawing method Not available at design time.
Usage
{ [form.][picturebox.]|Printer.}CurrentX[ = x ]
{ [form.][picturebox.]|Printer.}CurrentY[ = y ]
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 twips , or the current scale defined by the ScaleHeight, ScaleWidth , ScaleLeft, ScaleTop , and ScaleMode. properties.
When you use the following graphics methods, the CurrentX and CurrentY settings are changed as indicated:
This method Sets CurrentX, CurrentY to
Circle The center of the object.
Cls 0, 0
EndDoc 0, 0
Line The end point of the line.
NewPage 0, 0
Print The next print position.
PSet The point drawn.
Data Type
Single
Help:
Circle Method
Cls Method
DrawMode Property
DrawStyle Property
Left, Top Properties
Line Method
PSet Method
ScaleHeight, ScaleWidth Properties
ScaleLeft, ScaleTop Properties
ScaleMode Properties
Programmer's Guide:
Chapter 15, "Creating Graphics for Applications"