X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a969055e89e4bbf5e3ea280fcc7a536b1d35a7db..e9d804ebea801ce6268b962999410c2b21fad617:/include/wx/motif/checkbox.h?ds=sidebyside diff --git a/include/wx/motif/checkbox.h b/include/wx/motif/checkbox.h index 8032731221..9f9ca5851e 100644 --- a/include/wx/motif/checkbox.h +++ b/include/wx/motif/checkbox.h @@ -26,13 +26,15 @@ class WXDLLEXPORT wxCheckBox: public wxCheckBoxBase DECLARE_DYNAMIC_CLASS(wxCheckBox) public: - inline wxCheckBox() { } + inline wxCheckBox() { Init(); } inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr) { + Init(); + Create(parent, id, label, pos, size, style, validator, name); } @@ -47,6 +49,17 @@ public: // Implementation virtual void ChangeBackgroundColour(); +private: + // common part of all constructors + void Init() + { + m_evtType = wxEVT_COMMAND_CHECKBOX_CLICKED; + } + + // public for the callback +public: + // either exEVT_COMMAND_CHECKBOX_CLICKED or ..._TOGGLEBUTTON_CLICKED + wxEventType m_evtType; }; #endif