]>
git.saurik.com Git - wxWidgets.git/blob - src/univ/statline.cpp
b353bf7474e98bb08d9ad4ff5238c819ca45996e
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/univ/statline.cpp
3 // Purpose: wxStaticLine implementation
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #include "wx/wxprec.h"
30 #include "wx/validate.h"
33 #include "wx/statline.h"
35 #include "wx/univ/renderer.h"
37 // ============================================================================
39 // ============================================================================
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 bool wxStaticLine::Create(wxWindow
*parent
,
52 if ( !wxControl::Create(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
55 wxSize sizeReal
= AdjustSize(size
);
56 if ( sizeReal
!= size
)
62 void wxStaticLine::DoDraw(wxControlRenderer
*renderer
)
64 // we never have a border, so don't call the base class version whcih draws
66 wxSize sz
= GetSize();
79 renderer
->DrawLine(0, 0, x2
, y2
);
82 #endif // wxUSE_STATLINE