DR SET 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 SET ORIGIN (area; horizontal; vertical; mode)

ParameterTypeDescription
areaLongint4D Draw area
horizontalRealHorizontal position
verticalRealVertical position
modeInteger0 = Absolute, 1 = Relative

Description

The command DR SET ORIGIN sets the origin for area according to the horizontal, vertical, and mode parameters.

horizontal and vertical are specified in base units. Use DR Scale to base to convert from scale units to base units. You can specify horizontal and vertical as offsets from the current origin (relative) or as offsets from the upper left corner of the printable surface of the document (absolute).

If mode equals 0, horizontal and vertical are absolute coordinates.

If mode equals 1, horizontal and vertical are relative coordinates.

Positive values indicate a direction down or right. Negative values indicate a direction up or left. The default position for the origin is the upper left corner of the printable surface of the document. Many other 4D Draw commands rely on the position of the origin.

Example

This example resets the origin to the upper left corner of the area.

   DR SET ORIGIN (Area;0;0;0)

See Also

DR GET ORIGIN.


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