1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/radiobox.mm
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 #include "wx/radiobox.h"
15 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
16 BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
18 // WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView)
20 bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
21 const wxString& title,
24 int n, const wxString choices[],
26 long style, const wxValidator& validator,
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
33 m_parent->CocoaAddChild(this);
37 wxRadioBox::~wxRadioBox()
39 CocoaRemoveFromParent();
43 void wxRadioBox::SetSelection(int n)
47 int wxRadioBox::GetSelection() const
53 int wxRadioBox::GetCount() const
58 wxString wxRadioBox::GetString(int n) const
63 void wxRadioBox::SetString(int n, const wxString& label)
67 // change the individual radio button state
68 void wxRadioBox::Enable(int n, bool enable)
72 void wxRadioBox::Show(int n, bool show)
77 int wxRadioBox::GetColumnCount() const
82 int wxRadioBox::GetRowCount() const