]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: statusbr.h | |
3 | // Purpose: native implementation of wxStatusBar. Optional; can use generic | |
4 | // version instead. | |
d90895ac DW |
5 | // Author: David Webster |
6 | // Modified by: | |
7 | // Created: 10/17/99 | |
0e320a79 | 8 | // RCS-ID: $Id$ |
d90895ac | 9 | // Copyright: (c) David Webster |
0e320a79 DW |
10 | // Licence: wxWindows licence |
11 | /////////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #ifndef _WX_STATBAR_H_ | |
14 | #define _WX_STATBAR_H_ | |
15 | ||
d90895ac | 16 | class WXDLLEXPORT wxStatusBarPM : public wxStatusBar |
0e320a79 | 17 | { |
d90895ac | 18 | DECLARE_DYNAMIC_CLASS(wxStatusBarPM); |
0e320a79 DW |
19 | |
20 | public: | |
21 | // ctors | |
d90895ac DW |
22 | wxStatusBarPM(); |
23 | wxStatusBarPM(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP); | |
0e320a79 DW |
24 | |
25 | // create status line | |
26 | bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP); | |
27 | ||
28 | // a status line can have several (<256) fields numbered from 0 | |
29 | virtual void SetFieldsCount(int number = 1, const int widths[] = NULL); | |
30 | ||
31 | // each field of status line has its own text | |
32 | virtual void SetStatusText(const wxString& text, int number = 0); | |
33 | virtual wxString GetStatusText(int number = 0) const; | |
34 | ||
35 | // set status line fields' widths | |
36 | virtual void SetStatusWidths(int n, const int widths_field[]); | |
37 | ||
38 | void OnSize(wxSizeEvent& event); | |
39 | ||
40 | DECLARE_EVENT_TABLE() | |
41 | ||
42 | protected: | |
43 | void CopyFieldsWidth(const int widths[]); | |
44 | void SetFieldsWidth(); | |
45 | }; | |
46 | ||
d90895ac DW |
47 | #endif // _WX_STATBAR_H_ |
48 |