]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/radiobut.h
OS/2 NativeFontInfo support
[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
DW
8// Copyright: (c) David Webster
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
17WXDLLEXPORT_DATA(extern const char*) wxRadioButtonNameStr;
18
19class WXDLLEXPORT wxRadioButton: public wxControl
20{
3c299c3a
DW
21public:
22 inline wxRadioButton() {}
23 inline wxRadioButton( wxWindow* pParent
24 ,wxWindowID vId
25 ,const wxString& rsLabel
26 ,const wxPoint& rPos = wxDefaultPosition
27 ,const wxSize& rSize = wxDefaultSize
28 ,long lStyle = 0
57c4d796 29#if wxUSE_VALIDATORS
3c299c3a 30 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 31#endif
3c299c3a
DW
32 ,const wxString& rsName = wxRadioButtonNameStr
33 )
34 {
35 Create( pParent
36 ,vId
37 ,rsLabel
38 ,rPos
39 ,rSize
40 ,lStyle
57c4d796 41#if wxUSE_VALIDATORS
3c299c3a 42 ,rValidator
57c4d796 43#endif
3c299c3a
DW
44 ,rsName
45 );
46 }
0e320a79 47
3c299c3a
DW
48 bool Create( wxWindow* pParent
49 ,wxWindowID vId
50 ,const wxString& rsLabel
51 ,const wxPoint& rPos = wxDefaultPosition
52 ,const wxSize& rSize = wxDefaultSize
53 ,long lStyle = 0
54#if wxUSE_VALIDATORS
55 ,const wxValidator& rValidator = wxDefaultValidator
56#endif
57 ,const wxString& rsName = wxRadioButtonNameStr
58 );
59 virtual void SetLabel(const wxString& rsLabel);
60 virtual void SetValue(bool bVal);
61 virtual bool GetValue(void) const ;
0e320a79 62
3c299c3a
DW
63 bool OS2Command( WXUINT wParam
64 ,WXWORD wId
65 );
66 void Command(wxCommandEvent& rEvent);
67private:
68 DECLARE_DYNAMIC_CLASS(wxRadioButton)
69}; // end of wxRadioButton
0e320a79 70
0e320a79
DW
71#endif
72 // _WX_RADIOBUT_H_