]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/radiobut.h
opaque toolbox structs under Classic break access to contrlDefProc
[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
6c0fdfbb
DW
64 bool OS2Command( WXUINT wParam
65 ,WXWORD wId
66 );
67 void Command(wxCommandEvent& rEvent);
68 virtual MRESULT OS2WindowProc( WXUINT uMsg
69 ,WXWPARAM wParam
70 ,WXLPARAM lParam
71 );
72 virtual void SetFocus(void);
73
289b2951
DW
74protected:
75 virtual wxSize DoGetBestSize() const;
76
3c299c3a 77private:
289b2951
DW
78 void Init(void);
79
80 bool m_bFocusJustSet;
81
3c299c3a
DW
82 DECLARE_DYNAMIC_CLASS(wxRadioButton)
83}; // end of wxRadioButton
0e320a79 84
0e320a79
DW
85#endif
86 // _WX_RADIOBUT_H_