]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/radiobut.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/radiobut.cpp
3 // Purpose: wxRadioButton
4 // Author: Stefan Csomor
5 // Modified by: JS Lair (99/11/15) adding the cyclic group notion for radiobox
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
15 #include "wx/radiobut.h"
16 #include "wx/osx/private.h"
18 wxWidgetImplType
* wxWidgetImpl::CreateRadioButton( wxWindowMac
* wxpeer
,
20 wxWindowID
WXUNUSED(id
),
21 const wxString
& WXUNUSED(label
),
25 long WXUNUSED(extraStyle
))
27 Rect bounds
= wxMacGetBoundsForControl( wxpeer
, pos
, size
) ;
28 wxMacControl
* peer
= new wxMacControl(wxpeer
) ;
29 OSStatus err
= CreateRadioButtonControl(
30 MAC_WXHWND(parent
->MacGetTopLevelWindowRef()), &bounds
, CFSTR(""),
31 0, false /* no autotoggle */, peer
->GetControlRefAddr() );