]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/radiobut.h
Remove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.
[wxWidgets.git] / include / wx / os2 / radiobut.h
... / ...
CommitLineData
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
17class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
18{
19public:
20 inline wxRadioButton() { Init(); }
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 ,const wxValidator& rValidator = wxDefaultValidator
28 ,const wxString& rsName = wxRadioButtonNameStr
29 )
30 {
31 Init();
32
33 Create( pParent
34 ,vId
35 ,rsLabel
36 ,rPos
37 ,rSize
38 ,lStyle
39 ,rValidator
40 ,rsName
41 );
42 }
43
44 bool Create( wxWindow* pParent
45 ,wxWindowID vId
46 ,const wxString& rsLabel
47 ,const wxPoint& rPos = wxDefaultPosition
48 ,const wxSize& rSize = wxDefaultSize
49 ,long lStyle = 0
50 ,const wxValidator& rValidator = wxDefaultValidator
51 ,const wxString& rsName = wxRadioButtonNameStr
52 );
53
54 virtual void SetLabel(const wxString& rsLabel);
55 virtual void SetValue(bool bVal);
56 virtual bool GetValue(void) const ;
57
58 bool OS2Command( WXUINT wParam
59 ,WXWORD wId
60 );
61 void Command(wxCommandEvent& rEvent);
62 virtual MRESULT OS2WindowProc( WXUINT uMsg
63 ,WXWPARAM wParam
64 ,WXLPARAM lParam
65 );
66 virtual void SetFocus(void);
67
68protected:
69 virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
70 virtual wxSize DoGetBestSize() const;
71
72private:
73 void Init(void);
74
75 bool m_bFocusJustSet;
76
77 DECLARE_DYNAMIC_CLASS(wxRadioButton)
78}; // end of wxRadioButton
79
80#endif
81 // _WX_RADIOBUT_H_