]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/radiobut.h
Some WXPM defs for dialog styles.
[wxWidgets.git] / include / wx / os2 / radiobut.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: radiobut.h
3 // Purpose: wxRadioButton class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/12/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_RADIOBUT_H_
13 #define _WX_RADIOBUT_H_
14
15 #include "wx/control.h"
16
17 class WXDLLEXPORT wxRadioButton: public wxControl
18 {
19 public:
20 inline wxRadioButton() {}
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
27 #if wxUSE_VALIDATORS
28 ,const wxValidator& rValidator = wxDefaultValidator
29 #endif
30 ,const wxString& rsName = wxRadioButtonNameStr
31 )
32 {
33 Create( pParent
34 ,vId
35 ,rsLabel
36 ,rPos
37 ,rSize
38 ,lStyle
39 #if wxUSE_VALIDATORS
40 ,rValidator
41 #endif
42 ,rsName
43 );
44 }
45
46 bool Create( wxWindow* pParent
47 ,wxWindowID vId
48 ,const wxString& rsLabel
49 ,const wxPoint& rPos = wxDefaultPosition
50 ,const wxSize& rSize = wxDefaultSize
51 ,long lStyle = 0
52 #if wxUSE_VALIDATORS
53 ,const wxValidator& rValidator = wxDefaultValidator
54 #endif
55 ,const wxString& rsName = wxRadioButtonNameStr
56 );
57 virtual void SetLabel(const wxString& rsLabel);
58 virtual void SetValue(bool bVal);
59 virtual bool GetValue(void) const ;
60
61 bool OS2Command( WXUINT wParam
62 ,WXWORD wId
63 );
64 void Command(wxCommandEvent& rEvent);
65 private:
66 DECLARE_DYNAMIC_CLASS(wxRadioButton)
67 }; // end of wxRadioButton
68
69 #endif
70 // _WX_RADIOBUT_H_