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 WXDLLIMPEXP_CORE 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
27 ,const wxValidator
& rValidator
= wxDefaultValidator
28 ,const wxString
& rsName
= wxRadioButtonNameStr
44 bool Create( wxWindow
* pParent
46 ,const wxString
& rsLabel
47 ,const wxPoint
& rPos
= wxDefaultPosition
48 ,const wxSize
& rSize
= wxDefaultSize
50 ,const wxValidator
& rValidator
= wxDefaultValidator
51 ,const wxString
& rsName
= wxRadioButtonNameStr
54 virtual void SetLabel(const wxString
& rsLabel
);
55 virtual void SetValue(bool bVal
);
56 virtual bool GetValue(void) const ;
58 bool OS2Command( WXUINT wParam
61 void Command(wxCommandEvent
& rEvent
);
62 virtual MRESULT
OS2WindowProc( WXUINT uMsg
66 virtual void SetFocus(void);
69 virtual wxBorder
GetDefaultBorder() const { return wxBORDER_NONE
; }
70 virtual wxSize
DoGetBestSize() const;
77 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
78 }; // end of wxRadioButton