]>
git.saurik.com Git - wxWidgets.git/blob - src/generic/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/generic/statline.cpp
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 #include "wx/wxprec.h"
20 // For compilers that support precompilation, includes "wx.h".
28 #include "wx/statline.h"
31 #include "wx/statbox.h"
34 // ============================================================================
36 // ============================================================================
38 // ----------------------------------------------------------------------------
40 // ----------------------------------------------------------------------------
42 bool wxStaticLine::Create( wxWindow
*parent
,
51 if ( !CreateBase(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
54 // ok, this is ugly but it's better than nothing: use a thin static box to
55 // emulate static line
57 wxSize sizeReal
= AdjustSize(size
);
59 m_statbox
= new wxStaticBox(parent
, id
, wxEmptyString
, pos
, sizeReal
, style
, name
);
64 wxStaticLine::~wxStaticLine()
69 WXWidget
wxStaticLine::GetMainWidget() const
71 return m_statbox
->GetMainWidget();
74 void wxStaticLine::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
76 m_statbox
->SetSize(x
, y
, width
, height
, sizeFlags
);
79 void wxStaticLine::DoMoveWindow(int x
, int y
, int width
, int height
)
81 m_statbox
->SetSize(x
, y
, width
, height
);