1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
7 // RCS-ID: $Id: statbox.cpp 54129 2008-06-11 19:30:52Z SC $
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 @implementation wxNSBox
21 - (void)setImplementation: (wxWidgetImpl *) theImplementation
23 impl = theImplementation;
26 - (wxWidgetImpl*) implementation
38 wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
41 const wxString& label,
47 NSView* sv = (wxpeer->GetParent()->GetHandle() );
49 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
50 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
52 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
53 [v setImplementation:c];
57 #endif // wxUSE_STATBOX