]> git.saurik.com Git - wxWidgets.git/blob - src/osx/cocoa/statline.mm
Update OpenVMS compile support
[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 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
45 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
46 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
47 [v setImplementation:c];
48 return c;
49 }
50
51 #endif //wxUSE_STATLINE