version 6.0
DR SCROLL DOCUMENT (area; horizontal; vertical; mode)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| horizontal | Number | Horizontal position | |
| vertical | Number | Vertical position | |
| mode | Integer | 1=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