]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/checkbox.h
export wxActiveX stuff from core (not media) DLL (closes #8991)
[wxWidgets.git] / include / wx / os2 / checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: checkbox.h
3 // Purpose: wxCheckBox class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/13/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_CHECKBOX_H_
13 #define _WX_CHECKBOX_H_
14
15 #include "wx/control.h"
16
17 // Checkbox item (single checkbox)
18 class WXDLLIMPEXP_FWD_CORE wxBitmap;
19 class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
20 {
21 public:
22 inline wxCheckBox() { }
23 inline wxCheckBox( wxWindow* pParent
24 ,wxWindowID vId
25 ,const wxString& rsLabel
26 ,const wxPoint& rPos = wxDefaultPosition
27 ,const wxSize& rSize = wxDefaultSize
28 ,long lStyle = 0
29 ,const wxValidator& rValidator = wxDefaultValidator
30 ,const wxString& rsName = wxCheckBoxNameStr
31 )
32 {
33 Create( pParent
34 ,vId
35 ,rsLabel
36 ,rPos
37 ,rSize
38 ,lStyle
39 ,rValidator
40 ,rsName
41 );
42 }
43
44 bool Create( wxWindow* pParent
45 ,wxWindowID vId
46 ,const wxString& rsLabel
47 ,const wxPoint& rPos = wxDefaultPosition
48 ,const wxSize& rSize = wxDefaultSize
49 ,long lStyle = 0
50 ,const wxValidator& rValidator = wxDefaultValidator
51 ,const wxString& rsName = wxCheckBoxNameStr
52 );
53
54 virtual void SetValue(bool bValue);
55 virtual bool GetValue(void) const ;
56
57 virtual bool OS2Command( WXUINT uParam
58 ,WXWORD wId
59 );
60 virtual void SetLabel(const wxString& rsLabel);
61 virtual void Command(wxCommandEvent& rEvent);
62
63 protected:
64 virtual wxSize DoGetBestSize(void) const;
65 private:
66 DECLARE_DYNAMIC_CLASS(wxCheckBox)
67 };
68
69 class WXDLLIMPEXP_CORE wxBitmapCheckBox: public wxCheckBox
70 {
71 public:
72
73 inline wxBitmapCheckBox() { m_nCheckWidth = -1; m_nCheckHeight = -1; }
74 inline wxBitmapCheckBox( wxWindow* pParent
75 ,wxWindowID vId
76 ,const wxBitmap* pLabel
77 ,const wxPoint& rPos = wxDefaultPosition
78 ,const wxSize& rSize = wxDefaultSize
79 ,long lStyle = 0
80 ,const wxValidator& rValidator = wxDefaultValidator
81 ,const wxString& rsName = wxCheckBoxNameStr
82 )
83 {
84 Create( pParent
85 ,vId
86 ,pLabel
87 ,rPos
88 ,rSize
89 ,lStyle
90 ,rValidator
91 ,rsName
92 );
93 }
94
95 bool Create( wxWindow* pParent
96 ,wxWindowID vId
97 ,const wxBitmap* pLabel
98 ,const wxPoint& rPos = wxDefaultPosition
99 ,const wxSize& rSize = wxDefaultSize
100 ,long lStyle = 0
101 ,const wxValidator& rValidator = wxDefaultValidator
102 ,const wxString& rsName = wxCheckBoxNameStr
103 );
104
105 virtual void SetLabel(const wxBitmap& rBitmap);
106
107 int m_nCheckWidth;
108 int m_nCheckHeight;
109
110 private:
111
112 virtual void SetLabel(const wxString& rsString)
113 { wxCheckBox::SetLabel(rsString); };
114 DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
115 };
116 #endif
117 // _WX_CHECKBOX_H_