]>
Commit | Line | Data |
---|---|---|
489468fe | 1 | ///////////////////////////////////////////////////////////////////////////// |
524c47aa | 2 | // Name: src/osx/carbon/statbox.cpp |
489468fe SC |
3 | // Purpose: wxStaticBox |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
489468fe SC |
7 | // Copyright: (c) Stefan Csomor |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #include "wx/wxprec.h" | |
12 | ||
13 | #if wxUSE_STATBOX | |
14 | ||
15 | #include "wx/statbox.h" | |
524c47aa SC |
16 | #include "wx/osx/private.h" |
17 | ||
03647350 VZ |
18 | wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer, |
19 | wxWindowMac* parent, | |
20 | wxWindowID WXUNUSED(id), | |
a4fec5b4 | 21 | const wxString& WXUNUSED(label), |
03647350 | 22 | const wxPoint& pos, |
524c47aa | 23 | const wxSize& size, |
03647350 | 24 | long WXUNUSED(style), |
a4fec5b4 | 25 | long WXUNUSED(extraStyle)) |
489468fe | 26 | { |
524c47aa | 27 | Rect bounds = wxMacGetBoundsForControl( wxpeer, pos, size ); |
489468fe | 28 | |
524c47aa | 29 | wxMacControl* peer = new wxMacControl( wxpeer ); |
489468fe SC |
30 | OSStatus err = CreateGroupBoxControl( |
31 | MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, CFSTR(""), | |
524c47aa | 32 | true /*primary*/, peer->GetControlRefAddr() ); |
489468fe | 33 | verify_noerr( err ); |
524c47aa | 34 | return peer; |
489468fe | 35 | } |
489468fe SC |
36 | #endif // wxUSE_STATBOX |
37 |