version 2004 (Modified)
DR SET ENTERABLE (area; mode{; buttonMode})
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| mode | Integer | 0=Non-enterable | |
| 1=Enterable | |||
| buttonMode | Integer | Display as button when area is small: 0 = Yes, 1 = No |
Description
The DR SET ENTERABLE command controls access to the drawing in area as well as (optionally) the display of area when its size is small.
If mode equals 1, area is enabled and functions normally. If mode equals 0, area is disabled.
A disabled area cannot be modified by the user, but can be modified by the language. When an area is disabled, the user can scroll through the area and copy the selected objects to the Clipboard. The user cannot change the selection or use the 4D Draw menu bar or the Tool palette.
The optional buttonMode parameter is used to specify whether the 4D Draw area can be displayed as a button when its size is too small in the form.
- If you pass 0 in buttonMode, the area is displayed as a button if its height is less than 150 points or if its width is less than 300 points. When the user clicks on this button, 4D Draw switches to full page view. This function is enabled by default.
- If you pass 1 in buttonMode, the area is never displayed as a button.
Example
The following example is a form method. It turns off all of the display options in Area and then makes Area non-enterable.
If (Form event=On load) `If we are in the Before phase DR DISPLAY OPTIONS (Area;-1;0) `Turn off all display options DR SET ENTERABLE (Area;0) `Make the area non-enterable End if
See Also