]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/statline.cpp
avoid setting initial position if it was not specified, broken in r70734
[wxWidgets.git] / src / osx / carbon / statline.cpp
CommitLineData
489468fe 1/////////////////////////////////////////////////////////////////////////////
233f5738 2// Name: src/osx/carbon/statline.cpp
489468fe
SC
3// Purpose: wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
489468fe
SC
6// Copyright: (c) 1998 Vadim Zeitlin
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#include "wx/wxprec.h"
11
12#ifdef __BORLANDC__
13 #pragma hdrstop
14#endif
15
16#include "wx/statline.h"
17
18#ifndef WX_PRECOMP
19 #include "wx/statbox.h"
20#endif
21
489468fe
SC
22bool wxStaticLine::Create( wxWindow *parent,
23 wxWindowID id,
24 const wxPoint &pos,
25 const wxSize &size,
26 long style,
27 const wxString &name )
28{
29 if ( !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ) )
30 return false;
31
32 // this is ugly but it's better than nothing:
33 // use a thin static box to emulate static line
34
35 wxSize sizeReal = AdjustSize( size );
36
37// m_statbox = new wxStaticBox( parent, id, wxT(""), pos, sizeReal, style, name );
38
39 return true;
40}