version 6.0
DR DISPLAY OPTIONS (area; options; mode)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| options | Integer | Code for display options | |
| mode | Integer | 0=Hide | |
| 1=Show | |||
| 2=Toggle |
Description
The command DR DISPLAY OPTIONS controls which display options to show in area. Display options are drawing aids such as ruler lines and page breaks.
options specifies the options to affect. options is expressed as the sum of display option codes. Each code describes one display option. The display option codes are given in the following table:
| Code | Option |
| -1 | All options |
| 1 | Rulers |
| 2 | Ruler lines |
| 4 | Page breaks |
| 8 | Coordinates |
| 16 | Menu bar |
| 32 | Tool palette |
| 64 | Scroll bar |
| 128 | Area border |
| 256 | Print area |
| 512 | Paper area |
| 1024 | Paste board |
| 2048 | Zoom box |
mode describes how to change the display options:
If mode equals 0, the options are hidden.
If mode equals 1, the options are displayed.
If mode equals 2, the options are toggled.
Example
The following example turns off all of the display options for Area in the On load event of the form method.
If (Form event=On load) DR DISPLAY OPTIONS (Area;-1;0) End if