]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/osx/carbon/radiobut.cpp
Handle WebKitWebView create-web-view.
[wxWidgets.git] / src / osx / carbon / radiobut.cpp
... / ...
CommitLineData
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
6// Created: 01/01/98
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#include "wx/wxprec.h"
12
13#if wxUSE_RADIOBTN
14
15#include "wx/radiobut.h"
16#include "wx/osx/private.h"
17
18wxWidgetImplType* wxWidgetImpl::CreateRadioButton( wxWindowMac* wxpeer,
19 wxWindowMac* parent,
20 wxWindowID WXUNUSED(id),
21 const wxString& WXUNUSED(label),
22 const wxPoint& pos,
23 const wxSize& size,
24 long WXUNUSED(style),
25 long WXUNUSED(extraStyle))
26{
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() );
32 verify_noerr( err );
33
34 return peer;
35}
36
37#endif