version 6.0 (Modified)
CT SET ENTERABLE (area; mode{; buttonMode})
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| mode | Integer | Enterable or non-enterable | |
| 0 = Non-enterable | |||
| 1 = Enterable | |||
| buttonMode | Integer | 0 = Button if area is less than 150 points high | |
| 1 = Always an area |
Description
The CT SET ENTERABLE command controls access to the document in area.
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 Chart menu bar or tool palettes.
The optional parameter buttonMode allows you to prevent an area smaller than 150 points high from becoming a button.
Example
This example is a form method that makes area non-enterable.
If (Form event=On Load) CT SET ENTERABLE (Area;0) `Make the area non-enterable End if
See Also