]> git.saurik.com Git - wxWidgets.git/blame - src/osx/cocoa/radiobut.mm
no changes, just removed apparently unneeded wxMacBitmapButton class
[wxWidgets.git] / src / osx / cocoa / radiobut.mm
CommitLineData
f033830e
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/osx/cocoa/radiobut.mm
3// Purpose: wxRadioButton
4// Author: Stefan Csomor
ae255e29 5// Modified by:
f033830e
SC
6// Created: ??/??/98
7// RCS-ID: $Id: radiobut.cpp 54129 2008-06-11 19:30:52Z SC $
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13
14#if wxUSE_RADIOBTN
15
16#include "wx/radiobut.h"
17#include "wx/osx/private.h"
18
19wxWidgetImplType* wxWidgetImpl::CreateRadioButton( wxWindowMac* wxpeer,
d8207702
SC
20 wxWindowMac* WXUNUSED(parent),
21 wxWindowID WXUNUSED(id),
22 const wxString& WXUNUSED(label),
f033830e
SC
23 const wxPoint& pos,
24 const wxSize& size,
d8207702
SC
25 long WXUNUSED(style),
26 long WXUNUSED(extraStyle))
f033830e 27{
dbeddfb9 28 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
f033830e
SC
29 wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
30
31 [v setButtonType:NSRadioButton];
32
f033830e 33 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
f033830e
SC
34 return c;
35}
36
37#endif