]>
Commit | Line | Data |
---|---|---|
489468fe | 1 | ///////////////////////////////////////////////////////////////////////////// |
524c47aa | 2 | // Name: src/osx/carbon/radiobut.cpp |
489468fe | 3 | // Purpose: wxRadioButton |
524c47aa | 4 | // Author: Stefan Csomor |
489468fe | 5 | // Modified by: JS Lair (99/11/15) adding the cyclic group notion for radiobox |
524c47aa | 6 | // Created: 01/01/98 |
524c47aa | 7 | // Copyright: (c) Stefan Csomor |
489468fe SC |
8 | // Licence: wxWindows licence |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #include "wx/wxprec.h" | |
12 | ||
13 | #if wxUSE_RADIOBTN | |
14 | ||
15 | #include "wx/radiobut.h" | |
524c47aa SC |
16 | #include "wx/osx/private.h" |
17 | ||
03647350 VZ |
18 | wxWidgetImplType* wxWidgetImpl::CreateRadioButton( wxWindowMac* wxpeer, |
19 | wxWindowMac* parent, | |
20 | wxWindowID WXUNUSED(id), | |
a4fec5b4 | 21 | const wxString& WXUNUSED(label), |
03647350 | 22 | const wxPoint& pos, |
524c47aa | 23 | const wxSize& size, |
03647350 VZ |
24 | long WXUNUSED(style), |
25 | long WXUNUSED(extraStyle)) | |
489468fe | 26 | { |
524c47aa SC |
27 | Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size ) ; |
28 | wxMacControl* peer = new wxMacControl(wxpeer) ; | |
489468fe SC |
29 | OSStatus err = CreateRadioButtonControl( |
30 | MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, CFSTR(""), | |
524c47aa | 31 | 0, false /* no autotoggle */, peer->GetControlRefAddr() ); |
489468fe SC |
32 | verify_noerr( err ); |
33 | ||
524c47aa | 34 | return peer; |
489468fe SC |
35 | } |
36 | ||
37 | #endif |