]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/statbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/statbox.cpp
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #include "wx/statbox.h"
17 #include "wx/osx/private.h"
19 wxWidgetImplType
* wxWidgetImpl::CreateGroupBox( wxWindowMac
* wxpeer
,
22 const wxString
& label
,
28 Rect bounds
= wxMacGetBoundsForControl( wxpeer
, pos
, size
);
30 wxMacControl
* peer
= new wxMacControl( wxpeer
);
31 OSStatus err
= CreateGroupBoxControl(
32 MAC_WXHWND(parent
->MacGetTopLevelWindowRef()), &bounds
, CFSTR(""),
33 true /*primary*/, peer
->GetControlRefAddr() );
37 #endif // wxUSE_STATBOX