]> git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/statbox.cpp
Make mouse capture checking asserts stronger and more detailed.
[wxWidgets.git] / src / osx / carbon / statbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/statbox.cpp
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
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"
16 #include "wx/osx/private.h"
17
18 wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
19 wxWindowMac* parent,
20 wxWindowID WXUNUSED(id),
21 const wxString& WXUNUSED(label),
22 const wxPoint& pos,
23 const wxSize& size,
24 long WXUNUSED(style),
25 long WXUNUSED(extraStyle))
26 {
27 Rect bounds = wxMacGetBoundsForControl( wxpeer, pos, size );
28
29 wxMacControl* peer = new wxMacControl( wxpeer );
30 OSStatus err = CreateGroupBoxControl(
31 MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, CFSTR(""),
32 true /*primary*/, peer->GetControlRefAddr() );
33 verify_noerr( err );
34 return peer;
35 }
36 #endif // wxUSE_STATBOX
37