]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: checkbox.h | |
3 | // Purpose: wxCheckBox class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_CHECKBOX_H_ | |
13 | #define _WX_CHECKBOX_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "checkbox.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/control.h" | |
20 | ||
21 | WXDLLEXPORT_DATA(extern const char*) wxCheckBoxNameStr; | |
22 | ||
23 | // Checkbox item (single checkbox) | |
18128cbb | 24 | class WXDLLEXPORT wxCheckBox: public wxCheckBoxBase |
9b6dbb09 | 25 | { |
83df96d6 JS |
26 | DECLARE_DYNAMIC_CLASS(wxCheckBox) |
27 | ||
28 | public: | |
29 | inline wxCheckBox() { } | |
30 | inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, | |
31 | const wxPoint& pos = wxDefaultPosition, | |
32 | const wxSize& size = wxDefaultSize, long style = 0, | |
33 | const wxValidator& validator = wxDefaultValidator, | |
34 | const wxString& name = wxCheckBoxNameStr) | |
35 | { | |
36 | Create(parent, id, label, pos, size, style, validator, name); | |
37 | } | |
38 | ||
39 | bool Create(wxWindow *parent, wxWindowID id, const wxString& label, | |
40 | const wxPoint& pos = wxDefaultPosition, | |
41 | const wxSize& size = wxDefaultSize, long style = 0, | |
42 | const wxValidator& validator = wxDefaultValidator, | |
43 | const wxString& name = wxCheckBoxNameStr); | |
44 | virtual void SetValue(bool); | |
45 | virtual bool GetValue() const ; | |
46 | virtual void Command(wxCommandEvent& event); | |
47 | ||
48 | // Implementation | |
83df96d6 | 49 | virtual void ChangeBackgroundColour(); |
9b6dbb09 JS |
50 | }; |
51 | ||
9b6dbb09 | 52 | #endif |
83df96d6 | 53 | // _WX_CHECKBOX_H_ |