1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/checkbox.h
3 // Purpose: wxCheckBox class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CHECKBOX_H_
13 #define _WX_CHECKBOX_H_
15 #include "wx/control.h"
17 // Checkbox item (single checkbox)
18 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
19 class WXDLLIMPEXP_CORE wxCheckBox
: public wxCheckBoxBase
22 inline wxCheckBox() { }
23 inline wxCheckBox( wxWindow
* pParent
25 ,const wxString
& rsLabel
26 ,const wxPoint
& rPos
= wxDefaultPosition
27 ,const wxSize
& rSize
= wxDefaultSize
29 ,const wxValidator
& rValidator
= wxDefaultValidator
30 ,const wxString
& rsName
= wxCheckBoxNameStr
44 bool Create( wxWindow
* pParent
46 ,const wxString
& rsLabel
47 ,const wxPoint
& rPos
= wxDefaultPosition
48 ,const wxSize
& rSize
= wxDefaultSize
50 ,const wxValidator
& rValidator
= wxDefaultValidator
51 ,const wxString
& rsName
= wxCheckBoxNameStr
54 virtual void SetValue(bool bValue
);
55 virtual bool GetValue(void) const ;
57 virtual bool OS2Command( WXUINT uParam
60 virtual void SetLabel(const wxString
& rsLabel
);
61 virtual void Command(wxCommandEvent
& rEvent
);
64 virtual wxSize
DoGetBestSize(void) const;
66 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
69 class WXDLLIMPEXP_CORE wxBitmapCheckBox
: public wxCheckBox
73 inline wxBitmapCheckBox() { m_nCheckWidth
= -1; m_nCheckHeight
= -1; }
74 inline wxBitmapCheckBox( wxWindow
* pParent
76 ,const wxBitmap
* pLabel
77 ,const wxPoint
& rPos
= wxDefaultPosition
78 ,const wxSize
& rSize
= wxDefaultSize
80 ,const wxValidator
& rValidator
= wxDefaultValidator
81 ,const wxString
& rsName
= wxCheckBoxNameStr
95 bool Create( wxWindow
* pParent
97 ,const wxBitmap
* pLabel
98 ,const wxPoint
& rPos
= wxDefaultPosition
99 ,const wxSize
& rSize
= wxDefaultSize
101 ,const wxValidator
& rValidator
= wxDefaultValidator
102 ,const wxString
& rsName
= wxCheckBoxNameStr
105 virtual void SetLabel(const wxBitmap
& rBitmap
);
112 virtual void SetLabel(const wxString
& rsString
)
113 { wxCheckBox::SetLabel(rsString
); };
114 DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox
)