]>
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
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 #include "wx/wxprec.h"
21 // For compilers that support precompilation, includes "wx.h".
29 #include "wx/statline.h"
32 #include "wx/statbox.h"
35 // ============================================================================
37 // ============================================================================
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 bool wxStaticLine::Create( wxWindow
*parent
,
52 if ( !CreateBase(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
55 // ok, this is ugly but it's better than nothing: use a thin static box to
56 // emulate static line
58 wxSize sizeReal
= AdjustSize(size
);
60 m_statbox
= new wxStaticBox(parent
, id
, wxEmptyString
, pos
, sizeReal
, style
, name
);
65 wxStaticLine::~wxStaticLine()
70 WXWidget
wxStaticLine::GetMainWidget() const
72 return m_statbox
->GetMainWidget();
75 void wxStaticLine::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
77 m_statbox
->SetSize(x
, y
, width
, height
, sizeFlags
);
80 void wxStaticLine::DoMoveWindow(int x
, int y
, int width
, int height
)
82 m_statbox
->SetSize(x
, y
, width
, height
);