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 @implementation wxNSBox
38 - (void)setImplementation: (wxWidgetImpl *) theImplementation
40 m_impl = theImplementation;
43 - (wxWidgetImpl*) implementation
55 wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
63 NSView* sv = (wxpeer->GetParent()->GetHandle() );
65 NSRect r = wxToNSRect( sv, wxRect( pos, size) );
66 // Rect bounds = wxMacGetBoundsForControl( wxpeer, pos , size ) ;
67 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
69 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
70 [v setImplementation:c];
74 #endif //wxUSE_STATLINE