1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/statline.h
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GENERIC_STATLINE_H_
11 #define _WX_GENERIC_STATLINE_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxStaticLine
: public wxStaticLineBase
21 DECLARE_DYNAMIC_CLASS(wxStaticLine
)
24 // constructors and pseudo-constructors
25 wxStaticLine() { m_statbox
= NULL
; }
27 wxStaticLine( wxWindow
*parent
,
28 wxWindowID id
= wxID_ANY
,
29 const wxPoint
&pos
= wxDefaultPosition
,
30 const wxSize
&size
= wxDefaultSize
,
31 long style
= wxLI_HORIZONTAL
,
32 const wxString
&name
= wxStaticLineNameStr
)
34 Create(parent
, id
, pos
, size
, style
, name
);
37 virtual ~wxStaticLine();
39 bool Create( wxWindow
*parent
,
40 wxWindowID id
= wxID_ANY
,
41 const wxPoint
&pos
= wxDefaultPosition
,
42 const wxSize
&size
= wxDefaultSize
,
43 long style
= wxLI_HORIZONTAL
,
44 const wxString
&name
= wxStaticLineNameStr
);
46 // it's necessary to override this wxWindow function because we
47 // will want to return the main widget for m_statbox
49 WXWidget
GetMainWidget() const;
51 // override wxWindow methods to make things work
52 virtual void DoSetSize(int x
, int y
, int width
, int height
,
53 int sizeFlags
= wxSIZE_AUTO
);
54 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);
56 // we implement the static line using a static box
57 wxStaticBox
*m_statbox
;
60 #endif // _WX_GENERIC_STATLINE_H_