]>
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
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
15 #include "wx/statbox.h"
16 #include "wx/osx/private.h"
18 wxWidgetImplType
* wxWidgetImpl::CreateGroupBox( wxWindowMac
* wxpeer
,
20 wxWindowID
WXUNUSED(id
),
21 const wxString
& WXUNUSED(label
),
25 long WXUNUSED(extraStyle
))
27 Rect bounds
= wxMacGetBoundsForControl( wxpeer
, pos
, size
);
29 wxMacControl
* peer
= new wxMacControl( wxpeer
);
30 OSStatus err
= CreateGroupBoxControl(
31 MAC_WXHWND(parent
->MacGetTopLevelWindowRef()), &bounds
, CFSTR(""),
32 true /*primary*/, peer
->GetControlRefAddr() );
36 #endif // wxUSE_STATBOX