]>
git.saurik.com Git - wxWidgets.git/blob - src/generic/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: generic/statline.cpp
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
20 #pragma implementation "statline.h"
23 // For compilers that support precompilation, includes "wx.h".
24 #include "wx/wxprec.h"
30 #include "wx/statline.h"
31 #include "wx/statbox.h"
33 // ============================================================================
35 // ============================================================================
37 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 bool wxStaticLine::Create( wxWindow
*parent
,
50 if ( !CreateBase(parent
, id
, pos
, size
, style
, name
) )
53 // ok, this is ugly but it's better than nothing: use a thin static box to
54 // emulate static line
56 wxSize sizeReal
= AdjustSize(size
);
58 m_statbox
= new wxStaticBox(parent
, id
, _T(""), pos
, sizeReal
, style
, name
);