]>
Commit | Line | Data |
---|---|---|
f033830e SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: src/osx/cocoa/statline.mm | |
3 | // Purpose: wxStaticLine class | |
4 | // Author: Stefan Csomor | |
5 | // Created: 28.06.99 | |
f033830e SC |
6 | // Copyright: (c) 2008 Stefan Csomor |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | // ============================================================================ | |
11 | // declarations | |
12 | // ============================================================================ | |
13 | ||
14 | // ---------------------------------------------------------------------------- | |
15 | // headers | |
16 | // ---------------------------------------------------------------------------- | |
17 | ||
18 | // For compilers that support precompilation, includes "wx.h". | |
19 | #include "wx/wxprec.h" | |
20 | ||
21 | #ifdef __BORLANDC__ | |
22 | #pragma hdrstop | |
23 | #endif | |
24 | ||
25 | #if wxUSE_STATLINE | |
26 | ||
27 | #include "wx/statline.h" | |
28 | ||
29 | #ifndef WX_PRECOMP | |
30 | #include "wx/statbox.h" | |
31 | #endif | |
32 | ||
33 | #include "wx/osx/private.h" | |
34 | ||
03647350 VZ |
35 | wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer, |
36 | wxWindowMac* WXUNUSED(parent), | |
37 | wxWindowID WXUNUSED(id), | |
38 | const wxPoint& pos, | |
f033830e | 39 | const wxSize& size, |
03647350 VZ |
40 | long WXUNUSED(style), |
41 | long WXUNUSED(extraStyle)) | |
f033830e | 42 | { |
dbeddfb9 | 43 | NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; |
f033830e | 44 | wxNSBox* v = [[wxNSBox alloc] initWithFrame:r]; |
f033830e | 45 | wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); |
f033830e SC |
46 | return c; |
47 | } | |
48 | ||
49 | #endif //wxUSE_STATLINE |