]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/statline.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / include / wx / generic / statline.h
CommitLineData
c50f1fb9 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/generic/statline.h
c50f1fb9
VZ
3// Purpose: a generic wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
c50f1fb9 6// Copyright: (c) 1998 Vadim Zeitlin
65571936 7// Licence: wxWindows licence
c50f1fb9
VZ
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GENERIC_STATLINE_H_
11#define _WX_GENERIC_STATLINE_H_
12
7a4b8f27
MB
13class wxStaticBox;
14
c50f1fb9
VZ
15// ----------------------------------------------------------------------------
16// wxStaticLine
17// ----------------------------------------------------------------------------
18
53a2db12 19class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
c50f1fb9
VZ
20{
21 DECLARE_DYNAMIC_CLASS(wxStaticLine)
22
23public:
24 // constructors and pseudo-constructors
d7c40406 25 wxStaticLine() { m_statbox = NULL; }
c50f1fb9
VZ
26
27 wxStaticLine( wxWindow *parent,
1de1196a 28 wxWindowID id = wxID_ANY,
c50f1fb9
VZ
29 const wxPoint &pos = wxDefaultPosition,
30 const wxSize &size = wxDefaultSize,
31 long style = wxLI_HORIZONTAL,
73b30256 32 const wxString &name = wxStaticLineNameStr )
c50f1fb9
VZ
33 {
34 Create(parent, id, pos, size, style, name);
35 }
36
d7c40406
MB
37 virtual ~wxStaticLine();
38
c50f1fb9 39 bool Create( wxWindow *parent,
1de1196a 40 wxWindowID id = wxID_ANY,
c50f1fb9
VZ
41 const wxPoint &pos = wxDefaultPosition,
42 const wxSize &size = wxDefaultSize,
43 long style = wxLI_HORIZONTAL,
73b30256 44 const wxString &name = wxStaticLineNameStr );
c50f1fb9 45
7183e38b
MB
46 // it's necessary to override this wxWindow function because we
47 // will want to return the main widget for m_statbox
48 //
49 WXWidget GetMainWidget() const;
277f2e52
MB
50
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);
c50f1fb9
VZ
55protected:
56 // we implement the static line using a static box
57 wxStaticBox *m_statbox;
58};
59
60#endif // _WX_GENERIC_STATLINE_H_
61