1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: native implementation of wxStatusBar. Optional; can use generic
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_STATBAR_H_
14 #define _WX_STATBAR_H_
17 #pragma interface "statbar.h"
20 #include "wx/generic/statusbr.h"
22 class WXDLLEXPORT wxStatusBarXX
: public wxStatusBar
24 DECLARE_DYNAMIC_CLASS(wxStatusBarXX
);
29 wxStatusBarXX(wxWindow
*parent
, wxWindowID id
= -1, long style
= wxST_SIZEGRIP
);
32 bool Create(wxWindow
*parent
, wxWindowID id
= -1, long style
= wxST_SIZEGRIP
);
34 // a status line can have several (<256) fields numbered from 0
35 virtual void SetFieldsCount(int number
= 1, const int widths
[] = NULL
);
37 // each field of status line has its own text
38 virtual void SetStatusText(const wxString
& text
, int number
= 0);
39 virtual wxString
GetStatusText(int number
= 0) const;
41 // set status line fields' widths
42 virtual void SetStatusWidths(int n
, const int widths_field
[]);
44 void OnSize(wxSizeEvent
& event
);
49 void CopyFieldsWidth(const int widths
[]);
50 void SetFieldsWidth();