Lines Matching defs:state
25 * Determine whether to use a 3-state or 2-state
26 * checkbox. 3-state enables to differentiate
34 * undetermined state. If not set the undetermined set can only
36 * This style can only be used with 3 state checkboxes.
41 * The possible states of a 3-state checkbox (Compatible
42 * with the 2-state checkbox).
48 wxCHK_UNDETERMINED /* 3-state checkbox only */
70 wxT(" a three state checkbox, Use Get3StateValue() instead") );
77 wxCheckBoxState state = DoGet3StateValue();
79 if ( state == wxCHK_UNDETERMINED && !Is3State() )
81 // Undetermined state with a 2-state checkbox??
82 wxFAIL_MSG( wxT("DoGet3StateValue() says the 2-state checkbox is ")
83 wxT("in an undetermined/third state") );
85 state = wxCHK_UNCHECKED;
88 return state;
91 void Set3StateValue(wxCheckBoxState state)
93 if ( state == wxCHK_UNDETERMINED && !Is3State() )
95 wxFAIL_MSG(wxT("Setting a 2-state checkbox to undetermined state"));
96 state = wxCHK_UNCHECKED;
99 DoSet3StateValue(state);
121 virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }