DR SCROLL DOCUMENT

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 SCROLL DOCUMENT (area; horizontal; vertical; mode)

ParameterTypeDescription
areaLongint4D Draw area
horizontalNumberHorizontal position
verticalNumberVertical position
modeInteger1=Relative
0=Absolute

Description

The command DR SCROLL DOCUMENT scrolls the document in area according to the horizontal and vertical parameters. Both horizontal and vertical are specified in base units. Use the DR Scale to base function to convert from scale units to base units.

If mode equals 1, area is scrolled to a position horizontal and vertical base units from its current position. If horizontal and vertical are positive numbers, area is scrolled down and to the right. If horizontal and vertical are negative numbers area is scrolled up and to the left.

If mode equals 0, area is scrolled to an absolute position horizontal and vertical base units from the origin.

Example

The following examples are the object methods for two buttons. One button scrolls the document one base unit to the right and one button scrolls the document one base unit to the left.

      `bRight
   DR SCROLL DOCUMENT (Area;1;0;1)
      `bLeft
   DR SCROLL DOCUMENT (Area;-1;0;1)

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