]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/radiobut.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / os2 / radiobut.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/os2/radiobut.h
0e320a79 3// Purpose: wxRadioButton class
cdf1e714 4// Author: David Webster
0e320a79 5// Modified by:
cdf1e714 6// Created: 10/12/99
cdf1e714 7// Copyright: (c) David Webster
65571936 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_RADIOBUT_H_
12#define _WX_RADIOBUT_H_
13
0e320a79
DW
14#include "wx/control.h"
15
53a2db12 16class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
0e320a79 17{
3c299c3a 18public:
289b2951 19 inline wxRadioButton() { Init(); }
3c299c3a
DW
20 inline wxRadioButton( wxWindow* pParent
21 ,wxWindowID vId
22 ,const wxString& rsLabel
23 ,const wxPoint& rPos = wxDefaultPosition
24 ,const wxSize& rSize = wxDefaultSize
25 ,long lStyle = 0
3c299c3a 26 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
27 ,const wxString& rsName = wxRadioButtonNameStr
28 )
29 {
289b2951
DW
30 Init();
31
3c299c3a
DW
32 Create( pParent
33 ,vId
34 ,rsLabel
35 ,rPos
36 ,rSize
37 ,lStyle
3c299c3a 38 ,rValidator
3c299c3a
DW
39 ,rsName
40 );
41 }
0e320a79 42
3c299c3a
DW
43 bool Create( wxWindow* pParent
44 ,wxWindowID vId
45 ,const wxString& rsLabel
46 ,const wxPoint& rPos = wxDefaultPosition
47 ,const wxSize& rSize = wxDefaultSize
48 ,long lStyle = 0
3c299c3a 49 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
50 ,const wxString& rsName = wxRadioButtonNameStr
51 );
289b2951 52
3c299c3a
DW
53 virtual void SetLabel(const wxString& rsLabel);
54 virtual void SetValue(bool bVal);
55 virtual bool GetValue(void) const ;
0e320a79 56
6c0fdfbb
DW
57 bool OS2Command( WXUINT wParam
58 ,WXWORD wId
59 );
60 void Command(wxCommandEvent& rEvent);
61 virtual MRESULT OS2WindowProc( WXUINT uMsg
62 ,WXWPARAM wParam
63 ,WXLPARAM lParam
64 );
65 virtual void SetFocus(void);
66
289b2951 67protected:
677dc0ed 68 virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
289b2951
DW
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_