State Property
The button's state.
Definition
Property "OLE.State" as Option
Values
Option can be one of three integer values:
| Value | Description |
|---|---|
0 | Unchecked (Default) |
1 | Checked |
2 | Undetermined |
Remarks
Normal buttons will always be unchecked. Toggle buttons may be checked or unchecked, and TriState buttons may be any of the three values.
Example
// Based on the button's state, perform an action
State = Get_Property(@Window:".OLE_BUTTON", "OLE.State")
Begin Case
Case State EQ 0:
// Button is unchecked...
Case State EQ 1:
// Button is checked...
Case State EQ 2:
// Button is undetermined...
End Case