]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/statbox.cpp
OpenGL changes for carbon and cocoa
[wxWidgets.git] / src / osx / carbon / statbox.cpp
CommitLineData
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
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13
14#if wxUSE_STATBOX
15
16#include "wx/statbox.h"
524c47aa
SC
17#include "wx/osx/private.h"
18
03647350
VZ
19wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
20 wxWindowMac* parent,
21 wxWindowID WXUNUSED(id),
a4fec5b4 22 const wxString& WXUNUSED(label),
03647350 23 const wxPoint& pos,
524c47aa 24 const wxSize& size,
03647350 25 long WXUNUSED(style),
a4fec5b4 26 long WXUNUSED(extraStyle))
489468fe 27{
524c47aa 28 Rect bounds = wxMacGetBoundsForControl( wxpeer, pos, size );
489468fe 29
524c47aa 30 wxMacControl* peer = new wxMacControl( wxpeer );
489468fe
SC
31 OSStatus err = CreateGroupBoxControl(
32 MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, CFSTR(""),
524c47aa 33 true /*primary*/, peer->GetControlRefAddr() );
489468fe 34 verify_noerr( err );
524c47aa 35 return peer;
489468fe 36}
489468fe
SC
37#endif // wxUSE_STATBOX
38