]>
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 
   8 // Copyright:   (c) Stefan Csomor 
   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
,  
  22                                     const wxString
& label
, 
  28     Rect bounds 
= wxMacGetBoundsForControl( wxpeer 
, pos 
, size 
) ; 
  29     wxMacControl
* peer 
= new wxMacControl(wxpeer
) ; 
  30     OSStatus err 
= CreateRadioButtonControl( 
  31         MAC_WXHWND(parent
->MacGetTopLevelWindowRef()), &bounds
, CFSTR(""), 
  32         0, false /* no autotoggle */, peer
->GetControlRefAddr() );