]> git.saurik.com Git - wxWidgets.git/blame - src/mac/classic/statline.cpp
Restore a use case that was lost with the last set of updates, using a
[wxWidgets.git] / src / mac / classic / statline.cpp
CommitLineData
2646f485 1/////////////////////////////////////////////////////////////////////////////
876cd6f7
WS
2// Name: src/mac/classic/statline.cpp
3// Purpose: wxStaticLine class
2646f485
SC
4// Author: Vadim Zeitlin
5// Created: 28.06.99
6// Version: $Id$
7// Copyright: (c) 1998 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
2646f485
SC
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
2646f485
SC
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#include "wx/statline.h"
876cd6f7
WS
27
28#ifndef WX_PRECOMP
29 #include "wx/statbox.h"
30#endif
2646f485
SC
31
32// ============================================================================
33// implementation
34// ============================================================================
35
36IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
37
38// ----------------------------------------------------------------------------
39// wxStaticLine
40// ----------------------------------------------------------------------------
41
42bool wxStaticLine::Create( wxWindow *parent,
43 wxWindowID id,
44 const wxPoint &pos,
45 const wxSize &size,
46 long style,
47 const wxString &name)
48{
49 if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
876cd6f7 50 return false;
2646f485
SC
51
52 // ok, this is ugly but it's better than nothing: use a thin static box to
53 // emulate static line
54
55 wxSize sizeReal = AdjustSize(size);
56
57// m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
58
876cd6f7 59 return true;
2646f485 60}