]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/radiobut.h
remove extra ';'
[wxWidgets.git] / include / wx / os2 / radiobut.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose: wxRadioButton class
cdf1e714 4// Author: David Webster
0e320a79 5// Modified by:
cdf1e714 6// Created: 10/12/99
0e320a79 7// RCS-ID: $Id$
cdf1e714 8// Copyright: (c) David Webster
65571936 9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_RADIOBUT_H_
13#define _WX_RADIOBUT_H_
14
0e320a79
DW
15#include "wx/control.h"
16
0e320a79
DW
17class WXDLLEXPORT wxRadioButton: public wxControl
18{
3c299c3a 19public:
289b2951 20 inline wxRadioButton() { Init(); }
3c299c3a
DW
21 inline wxRadioButton( wxWindow* pParent
22 ,wxWindowID vId
23 ,const wxString& rsLabel
24 ,const wxPoint& rPos = wxDefaultPosition
25 ,const wxSize& rSize = wxDefaultSize
26 ,long lStyle = 0
3c299c3a 27 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
28 ,const wxString& rsName = wxRadioButtonNameStr
29 )
30 {
289b2951
DW
31 Init();
32
3c299c3a
DW
33 Create( pParent
34 ,vId
35 ,rsLabel
36 ,rPos
37 ,rSize
38 ,lStyle
3c299c3a 39 ,rValidator
3c299c3a
DW
40 ,rsName
41 );
42 }
0e320a79 43
3c299c3a
DW
44 bool Create( wxWindow* pParent
45 ,wxWindowID vId
46 ,const wxString& rsLabel
47 ,const wxPoint& rPos = wxDefaultPosition
48 ,const wxSize& rSize = wxDefaultSize
49 ,long lStyle = 0
3c299c3a 50 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
51 ,const wxString& rsName = wxRadioButtonNameStr
52 );
289b2951 53
3c299c3a
DW
54 virtual void SetLabel(const wxString& rsLabel);
55 virtual void SetValue(bool bVal);
56 virtual bool GetValue(void) const ;
0e320a79 57
6c0fdfbb
DW
58 bool OS2Command( WXUINT wParam
59 ,WXWORD wId
60 );
61 void Command(wxCommandEvent& rEvent);
62 virtual MRESULT OS2WindowProc( WXUINT uMsg
63 ,WXWPARAM wParam
64 ,WXLPARAM lParam
65 );
66 virtual void SetFocus(void);
67
289b2951
DW
68protected:
69 virtual wxSize DoGetBestSize() const;
70
3c299c3a 71private:
289b2951
DW
72 void Init(void);
73
74 bool m_bFocusJustSet;
75
3c299c3a
DW
76 DECLARE_DYNAMIC_CLASS(wxRadioButton)
77}; // end of wxRadioButton
0e320a79 78
0e320a79
DW
79#endif
80 // _WX_RADIOBUT_H_