// Checkbox item (single checkbox)
class WXDLLEXPORT wxBitmap;
-class WXDLLEXPORT wxCheckBox: public wxControl
+class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
{
- DECLARE_DYNAMIC_CLASS(wxCheckBox)
-
public:
inline wxCheckBox() { }
inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
const wxValidator& validator = wxDefaultValidator,
+#endif
const wxString& name = wxCheckBoxNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
const wxValidator& validator = wxDefaultValidator,
+#endif
const wxString& name = wxCheckBoxNameStr);
virtual void SetValue(bool);
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
protected:
- virtual wxSize DoGetBestSize();
+ virtual wxSize DoGetBestSize() const;
+private:
+ DECLARE_DYNAMIC_CLASS(wxCheckBox)
};
class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
inline wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
const wxValidator& validator = wxDefaultValidator,
+#endif
const wxString& name = wxCheckBoxNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
const wxValidator& validator = wxDefaultValidator,
+#endif
const wxString& name = wxCheckBoxNameStr);
virtual void SetLabel(const wxBitmap& bitmap);