]> git.saurik.com Git - wxWidgets.git/blame - src/osx/statline_osx.cpp
Don't use "Cancel" button in the about dialog of the listctrl sample.
[wxWidgets.git] / src / osx / statline_osx.cpp
CommitLineData
e53b3d16 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: src/osx/statline_osx.cpp
e53b3d16
SC
3// Purpose: a generic wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
b5b208a1 6// Version: $Id$
e53b3d16
SC
7// Copyright: (c) 1998 Vadim Zeitlin
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// ============================================================================
37// implementation
38// ============================================================================
39
e53b3d16
SC
40// ----------------------------------------------------------------------------
41// wxStaticLine
42// ----------------------------------------------------------------------------
43
44bool wxStaticLine::Create( wxWindow *parent,
45 wxWindowID id,
46 const wxPoint &pos,
47 const wxSize &size,
48 long style,
49 const wxString &name)
d15694e8
SC
50{
51 DontCreatePeer();
52
e53b3d16
SC
53 if ( !wxStaticLineBase::Create(parent, id, pos, size,
54 style, wxDefaultValidator, name) )
55 return false;
56
22756322 57 SetPeer(wxWidgetImpl::CreateStaticLine( this, parent, id, pos, size, style, GetExtraStyle() ));
e53b3d16
SC
58
59 MacPostControlCreate(pos,size) ;
60
61 return true;
62}
63
64#endif //wxUSE_STATLINE