1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/radiobut.h
3 // Purpose: wxRadioButton class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_RADIOBUT_H_
12 #define _WX_RADIOBUT_H_
14 #include "wx/control.h"
16 class WXDLLIMPEXP_CORE wxRadioButton
: public wxControl
19 inline wxRadioButton() { Init(); }
20 inline wxRadioButton( wxWindow
* pParent
22 ,const wxString
& rsLabel
23 ,const wxPoint
& rPos
= wxDefaultPosition
24 ,const wxSize
& rSize
= wxDefaultSize
26 ,const wxValidator
& rValidator
= wxDefaultValidator
27 ,const wxString
& rsName
= wxRadioButtonNameStr
43 bool Create( wxWindow
* pParent
45 ,const wxString
& rsLabel
46 ,const wxPoint
& rPos
= wxDefaultPosition
47 ,const wxSize
& rSize
= wxDefaultSize
49 ,const wxValidator
& rValidator
= wxDefaultValidator
50 ,const wxString
& rsName
= wxRadioButtonNameStr
53 virtual void SetLabel(const wxString
& rsLabel
);
54 virtual void SetValue(bool bVal
);
55 virtual bool GetValue(void) const ;
57 bool OS2Command( WXUINT wParam
60 void Command(wxCommandEvent
& rEvent
);
61 virtual MRESULT
OS2WindowProc( WXUINT uMsg
65 virtual void SetFocus(void);
68 virtual wxBorder
GetDefaultBorder() const { return wxBORDER_NONE
; }
69 virtual wxSize
DoGetBestSize() const;
76 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
77 }; // end of wxRadioButton