]>
git.saurik.com Git - wxWidgets.git/blob - src/univ/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: univ/statline.cpp
3 // Purpose: wxStaticLine implementation
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
21 #pragma implementation "univstatline.h"
24 #include "wx/wxprec.h"
34 #include "wx/validate.h"
37 #include "wx/statline.h"
39 #include "wx/univ/renderer.h"
41 // ============================================================================
43 // ============================================================================
45 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
47 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 bool wxStaticLine::Create(wxWindow
*parent
,
58 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
61 wxSize sizeReal
= AdjustSize(size
);
62 if ( sizeReal
!= size
)
68 void wxStaticLine::DoDraw(wxControlRenderer
*renderer
)
70 // we never have a border, so don't call the base class version whcih draws
72 wxSize sz
= GetSize();
85 renderer
->DrawLine(0, 0, x2
, y2
);
88 #endif // wxUSE_STATLINE