Skip to main content

State Property

The button's state.

Definition​

Property "OLE.State" as Option

Values​

Option can be one of three integer values:

ValueDescription
0Unchecked (Default)
1Checked
2Undetermined

Remarks​

Normal buttons will always be unchecked. Toggle buttons may be checked or unchecked, and TriState buttons may be any of the three values.

TriState

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

See Also​

ButtonType