]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/statline.cpp
splitted wxApp docs in wxApp+wxAppConsole docs; fix the signature of the documented...
[wxWidgets.git] / src / mac / carbon / statline.cpp
CommitLineData
72e7876b 1/////////////////////////////////////////////////////////////////////////////
876cd6f7
WS
2// Name: src/mac/carbon/statline.cpp
3// Purpose: wxStaticLine class
72e7876b
SC
4// Author: Vadim Zeitlin
5// Created: 28.06.99
6// Version: $Id$
7// Copyright: (c) 1998 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
72e7876b
SC
9/////////////////////////////////////////////////////////////////////////////
10
72e7876b
SC
11#include "wx/wxprec.h"
12
13#ifdef __BORLANDC__
14 #pragma hdrstop
15#endif
16
17#include "wx/statline.h"
876cd6f7
WS
18
19#ifndef WX_PRECOMP
20 #include "wx/statbox.h"
21#endif
72e7876b 22
72e7876b
SC
23IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
24
72e7876b
SC
25
26bool wxStaticLine::Create( wxWindow *parent,
43524b15
DS
27 wxWindowID id,
28 const wxPoint &pos,
29 const wxSize &size,
30 long style,
31 const wxString &name )
72e7876b 32{
43524b15
DS
33 if ( !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ) )
34 return false;
72e7876b 35
43524b15
DS
36 // this is ugly but it's better than nothing:
37 // use a thin static box to emulate static line
72e7876b 38
43524b15 39 wxSize sizeReal = AdjustSize( size );
72e7876b 40
43524b15 41// m_statbox = new wxStaticBox( parent, id, wxT(""), pos, sizeReal, style, name );
72e7876b 42
43524b15 43 return true;
72e7876b 44}