]> git.saurik.com Git - wxWidgets.git/blob - src/stubs/radiobut.cpp
fixed stupid loop in wxFileSystem::OpenFile
[wxWidgets.git] / src / stubs / radiobut.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: radiobut.cpp
3 // Purpose: wxRadioButton
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "radiobut.h"
14 #endif
15
16 #include "wx/radiobut.h"
17
18 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
19
20 bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
21 const wxString& label,
22 const wxPoint& pos,
23 const wxSize& size, long style,
24 const wxValidator& validator,
25 const wxString& name)
26 {
27 SetName(name);
28 SetValidator(validator);
29
30 if (parent) parent->AddChild(this);
31
32 if ( id == -1 )
33 m_windowId = (int)NewControlId();
34 else
35 m_windowId = id;
36
37 m_windowStyle = style ;
38
39 // TODO create radiobutton
40 return FALSE;
41 }
42
43 void wxRadioButton::SetLabel(const wxString& label)
44 {
45 // TODO
46 }
47
48 void wxRadioButton::SetValue(bool value)
49 {
50 // TODO
51 }
52
53 // Get single selection, for single choice list items
54 bool wxRadioButton::GetValue() const
55 {
56 // TODO
57 return FALSE;
58 }
59
60 void wxRadioButton::Command (wxCommandEvent & event)
61 {
62 SetValue ( (event.m_commandInt != 0) );
63 ProcessCommand (event);
64 }
65
66