X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a194bda7be7c240a3856413e19d7152ecfd7439..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/interface/wx/checkbox.h diff --git a/interface/wx/checkbox.h b/interface/wx/checkbox.h index cddfaf2393..d0f8296991 100644 --- a/interface/wx/checkbox.h +++ b/interface/wx/checkbox.h @@ -6,6 +6,28 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +/* + * wxCheckBox style flags + * (Using wxCHK_* because wxCB_* is used by wxComboBox). + * Determine whether to use a 3-state or 2-state + * checkbox. 3-state enables to differentiate + * between 'unchecked', 'checked' and 'undetermined'. + * + * In addition to the styles here it is also possible to specify just 0 which + * is treated the same as wxCHK_2STATE for compatibility (but using explicit + * flag is preferred). + */ +#define wxCHK_2STATE 0x4000 +#define wxCHK_3STATE 0x1000 + +/* + * If this style is set the user can set the checkbox to the + * undetermined state. If not set the undetermined set can only + * be set programmatically. + * This style can only be used with 3 state checkboxes. + */ +#define wxCHK_ALLOW_3RD_STATE_FOR_USER 0x2000 + /** The possible states of a 3-state wxCheckBox (Compatible with the 2-state wxCheckBox). @@ -29,7 +51,7 @@ enum wxCheckBoxState @style{wxCHK_2STATE} Create a 2-state checkbox. This is the default. @style{wxCHK_3STATE} - Create a 3-state checkbox. Not implemented in wxMGL, wxOS2 and + Create a 3-state checkbox. Not implemented in wxOS2 and wxGTK built against GTK+ 1.2. @style{wxCHK_ALLOW_3RD_STATE_FOR_USER} By default a user can't set a 3-state checkbox to the third state. @@ -106,7 +128,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& = wxCheckBoxNameStr); + const wxString& name = wxCheckBoxNameStr); /** Gets the state of a 2-state checkbox.