Implemented wxToggleButton under Motif.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user