]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: radiobut.h | |
3 | // Purpose: wxRadioButton class | |
cdf1e714 | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
cdf1e714 | 6 | // Created: 10/12/99 |
0e320a79 | 7 | // RCS-ID: $Id$ |
cdf1e714 DW |
8 | // Copyright: (c) David Webster |
9 | // Licence: wxWindows licence | |
0e320a79 DW |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_RADIOBUT_H_ | |
13 | #define _WX_RADIOBUT_H_ | |
14 | ||
0e320a79 DW |
15 | #include "wx/control.h" |
16 | ||
0e320a79 DW |
17 | class WXDLLEXPORT wxRadioButton: public wxControl |
18 | { | |
3c299c3a DW |
19 | public: |
20 | inline wxRadioButton() {} | |
21 | inline wxRadioButton( wxWindow* pParent | |
22 | ,wxWindowID vId | |
23 | ,const wxString& rsLabel | |
24 | ,const wxPoint& rPos = wxDefaultPosition | |
25 | ,const wxSize& rSize = wxDefaultSize | |
26 | ,long lStyle = 0 | |
57c4d796 | 27 | #if wxUSE_VALIDATORS |
3c299c3a | 28 | ,const wxValidator& rValidator = wxDefaultValidator |
57c4d796 | 29 | #endif |
3c299c3a DW |
30 | ,const wxString& rsName = wxRadioButtonNameStr |
31 | ) | |
32 | { | |
33 | Create( pParent | |
34 | ,vId | |
35 | ,rsLabel | |
36 | ,rPos | |
37 | ,rSize | |
38 | ,lStyle | |
57c4d796 | 39 | #if wxUSE_VALIDATORS |
3c299c3a | 40 | ,rValidator |
57c4d796 | 41 | #endif |
3c299c3a DW |
42 | ,rsName |
43 | ); | |
44 | } | |
0e320a79 | 45 | |
3c299c3a DW |
46 | bool Create( wxWindow* pParent |
47 | ,wxWindowID vId | |
48 | ,const wxString& rsLabel | |
49 | ,const wxPoint& rPos = wxDefaultPosition | |
50 | ,const wxSize& rSize = wxDefaultSize | |
51 | ,long lStyle = 0 | |
52 | #if wxUSE_VALIDATORS | |
53 | ,const wxValidator& rValidator = wxDefaultValidator | |
54 | #endif | |
55 | ,const wxString& rsName = wxRadioButtonNameStr | |
56 | ); | |
57 | virtual void SetLabel(const wxString& rsLabel); | |
58 | virtual void SetValue(bool bVal); | |
59 | virtual bool GetValue(void) const ; | |
0e320a79 | 60 | |
3c299c3a DW |
61 | bool OS2Command( WXUINT wParam |
62 | ,WXWORD wId | |
63 | ); | |
64 | void Command(wxCommandEvent& rEvent); | |
65 | private: | |
66 | DECLARE_DYNAMIC_CLASS(wxRadioButton) | |
67 | }; // end of wxRadioButton | |
0e320a79 | 68 | |
0e320a79 DW |
69 | #endif |
70 | // _WX_RADIOBUT_H_ |