1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/cocoa/radiobut.mm
3 // Purpose: wxRadioButton
4 // Author: Stefan Csomor
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #include "wx/radiobut.h"
17 #include "wx/osx/private.h"
19 wxWidgetImplType* wxWidgetImpl::CreateRadioButton( wxWindowMac* wxpeer,
20 wxWindowMac* WXUNUSED(parent),
21 wxWindowID WXUNUSED(id),
22 const wxString& WXUNUSED(label),
26 long WXUNUSED(extraStyle))
28 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
29 wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
31 [v setButtonType:NSRadioButton];
33 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );