]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/radiobut.h
minor fix to wxFileName::MakeRelativeTo(), removed broken and misleading IsWild(...
[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
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
57c4d796 27#if wxUSE_VALIDATORS
3c299c3a 28 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 29#endif
3c299c3a
DW
30 ,const wxString& rsName = wxRadioButtonNameStr
31 )
32 {
289b2951
DW
33 Init();
34
3c299c3a
DW
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 );
289b2951 59
3c299c3a
DW
60 virtual void SetLabel(const wxString& rsLabel);
61 virtual void SetValue(bool bVal);
62 virtual bool GetValue(void) const ;
0e320a79 63
289b2951
DW
64 bool OS2Command( WXUINT wParam
65 ,WXWORD wId
66 );
67 void Command(wxCommandEvent& rEvent);
68 virtual void SetFocus(void);
69protected:
70 virtual wxSize DoGetBestSize() const;
71
3c299c3a 72private:
289b2951
DW
73 void Init(void);
74
75 bool m_bFocusJustSet;
76
3c299c3a
DW
77 DECLARE_DYNAMIC_CLASS(wxRadioButton)
78}; // end of wxRadioButton
0e320a79 79
0e320a79
DW
80#endif
81 // _WX_RADIOBUT_H_