Lines Matching defs:state
73 int state = event.GetInt();
75 wxCHECK_RET( (state == wxCHK_UNCHECKED) || (state == wxCHK_CHECKED)
76 || (state == wxCHK_UNDETERMINED),
77 wxT("event.GetInt() returned an invalid checkbox state") );
79 Set3StateValue((wxCheckBoxState) state);
98 wxCheckBoxState state = Get3StateValue();
100 if (state == wxCHK_UNCHECKED)
102 state = wxCHK_CHECKED;
104 else if (state == wxCHK_CHECKED)
106 // If the style flag to allow the user setting the undetermined state
107 // is set, then set the state to undetermined. Otherwise set state to
111 state = wxCHK_UNDETERMINED;
115 state = wxCHK_UNCHECKED;
118 else if (state == wxCHK_UNDETERMINED)
120 state = wxCHK_UNCHECKED;
122 Set3StateValue(state);
124 event.SetInt(state);