]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: radiobut.h | |
3 | // Purpose: wxRadioButton class | |
4 | // Author: David Webster | |
5 | // Modified by: | |
6 | // Created: 10/12/99 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) David Webster | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_RADIOBUT_H_ | |
13 | #define _WX_RADIOBUT_H_ | |
14 | ||
15 | #include "wx/control.h" | |
16 | ||
17 | WXDLLEXPORT_DATA(extern const char*) wxRadioButtonNameStr; | |
18 | ||
19 | class WXDLLEXPORT wxRadioButton: public wxControl | |
20 | { | |
21 | DECLARE_DYNAMIC_CLASS(wxRadioButton) | |
22 | protected: | |
23 | public: | |
24 | inline wxRadioButton() {} | |
25 | inline wxRadioButton(wxWindow *parent, wxWindowID id, | |
26 | const wxString& label, | |
27 | const wxPoint& pos = wxDefaultPosition, | |
28 | const wxSize& size = wxDefaultSize, long style = 0, | |
29 | #if wxUSE_VALIDATORS | |
30 | const wxValidator& validator = wxDefaultValidator, | |
31 | #endif | |
32 | const wxString& name = wxRadioButtonNameStr) | |
33 | { | |
34 | Create(parent, id, label, pos, size, style, validator, name); | |
35 | } | |
36 | ||
37 | bool Create(wxWindow *parent, wxWindowID id, | |
38 | const wxString& label, | |
39 | const wxPoint& pos = wxDefaultPosition, | |
40 | const wxSize& size = wxDefaultSize, long style = 0, | |
41 | #if wxUSE_VALIDATORS | |
42 | const wxValidator& validator = wxDefaultValidator, | |
43 | #endif | |
44 | const wxString& name = wxRadioButtonNameStr); | |
45 | ||
46 | virtual void SetLabel(const wxString& label); | |
47 | virtual void SetValue(bool val); | |
48 | virtual bool GetValue() const ; | |
49 | ||
50 | bool OS2Command(WXUINT param, WXWORD id); | |
51 | void Command(wxCommandEvent& event); | |
52 | }; | |
53 | ||
54 | #endif | |
55 | // _WX_RADIOBUT_H_ |