version 6.0
DR SET DOCUMENT SIZE (area; width; Height)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| width | Number | Width of document | |
| Height | Number | Height of document |
Description
The command DR SET DOCUMENT SIZE sets the size of the document in area.
After a call to DR SET DOCUMENT SIZE, the document is width wide and height tall. width and height are expressed in base units. Use the DR Scale to base function to convert from scale units to base units.
Example
The following example is a project method that is called from the object methods of two enterable areas on a form that contains Area. The two variables are named vWidth and vHeight and have their Only if Modified check box unchecked. In the Before phase, the method places the current document size into the two variables. In the During phase the method sets the document size to the values typed into the variables.
Case of : (Before) DR SET DOCUMENT SIZE (Area;vWidth;vHeight) : (During) DR GET DOCUMENT SIZE (Area;vWidth;vHeight) End case
See Also