1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxRadioButton class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_RADIOBUT_H_
13 #define _WX_RADIOBUT_H_
15 #include "wx/control.h"
17 class WXDLLEXPORT wxRadioButton
: public wxControl
20 inline wxRadioButton() { Init(); }
21 inline wxRadioButton( wxWindow
* pParent
23 ,const wxString
& rsLabel
24 ,const wxPoint
& rPos
= wxDefaultPosition
25 ,const wxSize
& rSize
= wxDefaultSize
28 ,const wxValidator
& rValidator
= wxDefaultValidator
30 ,const wxString
& rsName
= wxRadioButtonNameStr
48 bool Create( wxWindow
* pParent
50 ,const wxString
& rsLabel
51 ,const wxPoint
& rPos
= wxDefaultPosition
52 ,const wxSize
& rSize
= wxDefaultSize
55 ,const wxValidator
& rValidator
= wxDefaultValidator
57 ,const wxString
& rsName
= wxRadioButtonNameStr
60 virtual void SetLabel(const wxString
& rsLabel
);
61 virtual void SetValue(bool bVal
);
62 virtual bool GetValue(void) const ;
64 bool OS2Command( WXUINT wParam
67 void Command(wxCommandEvent
& rEvent
);
68 virtual void SetFocus(void);
70 virtual wxSize
DoGetBestSize() const;
77 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
78 }; // end of wxRadioButton