1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/checkbox.h
3 // Purpose: wxCheckBox class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by: Wlodzimierz ABX Skiba - native implementation
8 // Copyright: (c) William Osborne, Wlodzimierz Skiba
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CHECKBOX_H_
13 #define _WX_CHECKBOX_H_
15 // Checkbox item (single checkbox)
16 class WXDLLIMPEXP_CORE wxCheckBox
: public wxCheckBoxBase
20 wxCheckBox(wxWindow
*parent
,
22 const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
26 const wxValidator
& validator
= wxDefaultValidator
,
27 const wxString
& name
= wxCheckBoxNameStr
)
29 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
32 bool Create(wxWindow
*parent
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxValidator
& validator
= wxDefaultValidator
,
39 const wxString
& name
= wxCheckBoxNameStr
);
41 virtual void SetValue(bool value
);
42 virtual bool GetValue() const;
44 virtual void Command(wxCommandEvent
& event
);
46 // send a notification event, return true if processed
47 bool SendClickEvent();
50 virtual wxSize
DoGetBestSize() const;
52 virtual void DoSet3StateValue(wxCheckBoxState value
);
54 virtual wxCheckBoxState
DoGet3StateValue() const;
57 DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckBox
)
58 // current state of the checkbox
59 wxCheckBoxState m_state
;