]> git.saurik.com Git - wxWidgets.git/blame - src/osx/cocoa/statline.mm
cleaning up key handling, closes #10406
[wxWidgets.git] / src / osx / cocoa / statline.mm
CommitLineData
f033830e
SC
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
03647350
VZ
36wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
37 wxWindowMac* WXUNUSED(parent),
38 wxWindowID WXUNUSED(id),
39 const wxPoint& pos,
f033830e 40 const wxSize& size,
03647350
VZ
41 long WXUNUSED(style),
42 long WXUNUSED(extraStyle))
f033830e 43{
dbeddfb9 44 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
f033830e 45 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
f033830e 46 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
f033830e
SC
47 return c;
48}
49
50#endif //wxUSE_STATLINE