]> git.saurik.com Git - wxWidgets.git/blob - src/osx/cocoa/statline.mm
supporting NO_BORDER for Cocoa as well
[wxWidgets.git] / src / osx / cocoa / statline.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/cocoa/statline.mm
3 // Purpose: wxStaticLine class
4 // Author: Stefan Csomor
5 // Created: 28.06.99
6 // Version: $Id: statline.mm 54129 2008-06-11 19:30:52Z SC $
7 // Copyright: (c) 2008 Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #if wxUSE_STATLINE
27
28 #include "wx/statline.h"
29
30 #ifndef WX_PRECOMP
31 #include "wx/statbox.h"
32 #endif
33
34 #include "wx/osx/private.h"
35
36 wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
37 wxWindowMac* parent,
38 wxWindowID id,
39 const wxPoint& pos,
40 const wxSize& size,
41 long style,
42 long extraStyle)
43 {
44 NSView* sv = (wxpeer->GetParent()->GetHandle() );
45
46 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
47 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
48 [sv addSubview:v];
49 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
50 [v setImplementation:c];
51 return c;
52 }
53
54 #endif //wxUSE_STATLINE