| 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* WXUNUSED(parent), |
| 38 | wxWindowID WXUNUSED(id), |
| 39 | const wxPoint& pos, |
| 40 | const wxSize& size, |
| 41 | long WXUNUSED(style), |
| 42 | long WXUNUSED(extraStyle)) |
| 43 | { |
| 44 | NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; |
| 45 | wxNSBox* v = [[wxNSBox alloc] initWithFrame:r]; |
| 46 | wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); |
| 47 | return c; |
| 48 | } |
| 49 | |
| 50 | #endif //wxUSE_STATLINE |