]>
git.saurik.com Git - wxWidgets.git/blob - src/univ/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/univ/statline.cpp
3 // Purpose: wxStaticLine implementation
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 #include "wx/wxprec.h"
29 #include "wx/validate.h"
32 #include "wx/statline.h"
34 #include "wx/univ/renderer.h"
36 // ============================================================================
38 // ============================================================================
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 bool wxStaticLine::Create(wxWindow
*parent
,
51 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
54 wxSize sizeReal
= AdjustSize(size
);
55 if ( sizeReal
!= size
)
61 void wxStaticLine::DoDraw(wxControlRenderer
*renderer
)
63 // we never have a border, so don't call the base class version whcih draws
65 wxSize sz
= GetSize();
78 renderer
->DrawLine(0, 0, x2
, y2
);
81 #endif // wxUSE_STATLINE