DR GET ORIGIN

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR GET ORIGIN (area; horizontal; vertical)

ParameterTypeDescription
areaLongint4D Draw area
horizontalRealHorizontal position
verticalRealVertical 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

DR SET ORIGIN.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next