1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/checkbox.h
3 // Purpose: wxCheckBox class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_CHECKBOX_H_
12 #define _WX_CHECKBOX_H_
14 #include "wx/control.h"
16 // Checkbox item (single checkbox)
17 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
18 class WXDLLIMPEXP_CORE wxCheckBox
: public wxCheckBoxBase
21 inline wxCheckBox() { }
22 inline wxCheckBox( wxWindow
* pParent
24 ,const wxString
& rsLabel
25 ,const wxPoint
& rPos
= wxDefaultPosition
26 ,const wxSize
& rSize
= wxDefaultSize
28 ,const wxValidator
& rValidator
= wxDefaultValidator
29 ,const wxString
& rsName
= wxCheckBoxNameStr
43 bool Create( wxWindow
* pParent
45 ,const wxString
& rsLabel
46 ,const wxPoint
& rPos
= wxDefaultPosition
47 ,const wxSize
& rSize
= wxDefaultSize
49 ,const wxValidator
& rValidator
= wxDefaultValidator
50 ,const wxString
& rsName
= wxCheckBoxNameStr
53 virtual void SetValue(bool bValue
);
54 virtual bool GetValue(void) const ;
56 virtual bool OS2Command( WXUINT uParam
59 virtual void SetLabel(const wxString
& rsLabel
);
60 virtual void Command(wxCommandEvent
& rEvent
);
63 virtual wxSize
DoGetBestSize(void) const;
65 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
68 class WXDLLIMPEXP_CORE wxBitmapCheckBox
: public wxCheckBox
72 inline wxBitmapCheckBox() { m_nCheckWidth
= -1; m_nCheckHeight
= -1; }
73 inline wxBitmapCheckBox( wxWindow
* pParent
75 ,const wxBitmap
* pLabel
76 ,const wxPoint
& rPos
= wxDefaultPosition
77 ,const wxSize
& rSize
= wxDefaultSize
79 ,const wxValidator
& rValidator
= wxDefaultValidator
80 ,const wxString
& rsName
= wxCheckBoxNameStr
94 bool Create( wxWindow
* pParent
96 ,const wxBitmap
* pLabel
97 ,const wxPoint
& rPos
= wxDefaultPosition
98 ,const wxSize
& rSize
= wxDefaultSize
100 ,const wxValidator
& rValidator
= wxDefaultValidator
101 ,const wxString
& rsName
= wxCheckBoxNameStr
104 virtual void SetLabel(const wxBitmap
& rBitmap
);
111 virtual void SetLabel(const wxString
& rsString
)
112 { wxCheckBox::SetLabel(rsString
); }
113 DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox
)