]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: radiobut.h | |
3 | // Purpose: wxRadioButton class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
1e6feb95 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_RADIOBUT_H_ |
13 | #define _WX_RADIOBUT_H_ | |
2bda0e17 KB |
14 | |
15 | #ifdef __GNUG__ | |
16 | #pragma interface "radiobut.h" | |
17 | #endif | |
18 | ||
2bda0e17 KB |
19 | class WXDLLEXPORT wxRadioButton: public wxControl |
20 | { | |
21 | DECLARE_DYNAMIC_CLASS(wxRadioButton) | |
22 | protected: | |
23 | public: | |
24 | inline wxRadioButton(void) {} | |
debe6624 | 25 | inline wxRadioButton(wxWindow *parent, wxWindowID id, |
2bda0e17 KB |
26 | const wxString& label, |
27 | const wxPoint& pos = wxDefaultPosition, | |
debe6624 | 28 | const wxSize& size = wxDefaultSize, long style = 0, |
2bda0e17 KB |
29 | const wxValidator& validator = wxDefaultValidator, |
30 | const wxString& name = wxRadioButtonNameStr) | |
31 | { | |
32 | Create(parent, id, label, pos, size, style, validator, name); | |
33 | } | |
34 | ||
debe6624 | 35 | bool Create(wxWindow *parent, wxWindowID id, |
2bda0e17 KB |
36 | const wxString& label, |
37 | const wxPoint& pos = wxDefaultPosition, | |
debe6624 | 38 | const wxSize& size = wxDefaultSize, long style = 0, |
2bda0e17 KB |
39 | const wxValidator& validator = wxDefaultValidator, |
40 | const wxString& name = wxRadioButtonNameStr); | |
41 | ||
42 | virtual void SetLabel(const wxString& label); | |
debe6624 | 43 | virtual void SetValue(bool val); |
2bda0e17 KB |
44 | virtual bool GetValue(void) const ; |
45 | ||
621793f4 | 46 | bool MSWCommand(WXUINT param, WXWORD id); |
f6bcfd97 BP |
47 | virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, |
48 | WXUINT message, WXWPARAM wParam, WXLPARAM lParam); | |
49 | ||
2bda0e17 | 50 | void Command(wxCommandEvent& event); |
2bda0e17 KB |
51 | }; |
52 | ||
2bda0e17 | 53 | #endif |
bbcdf8bc | 54 | // _WX_RADIOBUT_H_ |