Applies to
All controls, menu items.
Description
Allows a disabled control to issue an event, or disables a control.
Usage
enabledstatus = Get_Property (objectname, "ENABLED")
existingprop = Set_Property (objectname, "ENABLED", state)
Remarks
Values passed in Set_Property:
Value | Possible Values | Description |
---|---|---|
State | 1 | The control is available to the user at run-time. |
0 | The control cannot receive focus and is displayed in a disabled manner. | |
-1 | The control cannot receive focus and is displayed in a disabled manner with the standard Windows graphical representation . |
Returns
Values returned by both Get_Property and Set_Property:
Value | Description |
---|---|
enabledstatus | State of control. |
existingprop | State of control when Set_Property was called. |
Note: With the release of OpenInsight 7.0, the ENABLED property may be set to a -1. This will set the control's disabled look to a "Windows Disabled" look.