1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: native implementation of wxStatusBar. Optional; can use generic
5 // Author: David Webster
9 // Copyright: (c) David Webster
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_STATBAR_H_
14 #define _WX_STATBAR_H_
16 class WXDLLEXPORT wxStatusBarPM
: public wxStatusBar
18 DECLARE_DYNAMIC_CLASS(wxStatusBarPM
);
23 wxStatusBarPM(wxWindow
*parent
, wxWindowID id
= -1, long style
= wxST_SIZEGRIP
);
26 bool Create(wxWindow
*parent
, wxWindowID id
= -1, long style
= wxST_SIZEGRIP
);
28 // a status line can have several (<256) fields numbered from 0
29 virtual void SetFieldsCount(int number
= 1, const int widths
[] = NULL
);
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;
35 // set status line fields' widths
36 virtual void SetStatusWidths(int n
, const int widths_field
[]);
38 void OnSize(wxSizeEvent
& event
);
43 void CopyFieldsWidth(const int widths
[]);
44 void SetFieldsWidth();
47 #endif // _WX_STATBAR_H_