1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/cocoa/statline.mm
3 // Purpose: wxStaticLine class
4 // Author: Stefan Csomor
6 // Version: $Id: statline.mm 54129 2008-06-11 19:30:52Z SC $
7 // Copyright: (c) 2008 Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
28 #include "wx/statline.h"
31 #include "wx/statbox.h"
34 #include "wx/osx/private.h"
36 wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
44 NSView* sv = (wxpeer->GetParent()->GetHandle() );
46 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
47 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
49 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
50 [v setImplementation:c];
54 #endif //wxUSE_STATLINE