]> git.saurik.com Git - wxWidgets.git/blame - src/mac/classic/statline.cpp
cleanup - reformat
[wxWidgets.git] / src / mac / classic / statline.cpp
CommitLineData
2646f485
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: generic/statline.cpp
3// Purpose: a generic wxStaticLine class
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"
27#include "wx/statbox.h"
28
29// ============================================================================
30// implementation
31// ============================================================================
32
33IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
34
35// ----------------------------------------------------------------------------
36// wxStaticLine
37// ----------------------------------------------------------------------------
38
39bool wxStaticLine::Create( wxWindow *parent,
40 wxWindowID id,
41 const wxPoint &pos,
42 const wxSize &size,
43 long style,
44 const wxString &name)
45{
46 if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
47 return FALSE;
48
49 // ok, this is ugly but it's better than nothing: use a thin static box to
50 // emulate static line
51
52 wxSize sizeReal = AdjustSize(size);
53
54// m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
55
56 return TRUE;
57}