version 6.0
DR GET ORIGIN (area; horizontal; vertical)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| horizontal | Real | Horizontal position | |
| vertical | Real | Vertical position |
Description
The command DR GET ORIGIN returns into the vertical and horizontal variables the origin for area.
horizontal and vertical are returned in base units. Use DR Base to scale to convert from base units to scale units. horizontal and vertical are returned as offsets from the upper left corner of the printable surface. Positive values indicate a position down or right. Negative values indicate a position up or left. The default position for the origin is the upper left corner of the printable surface of the document.
Example
The following example is the object method for a button on a form. When the button is pressed, DR GET ORIGIN updates the process variables vHorizontal and vVertical to show the position of the origin.
DR GET ORIGIN (Area;vHorizontal;vVertical)
See Also