]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/statusbr.h
*** empty log message ***
[wxWidgets.git] / include / wx / os2 / statusbr.h
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: statusbr.h
3// Purpose: native implementation of wxStatusBar. Optional; can use generic
4// version instead.
5// Author: David Webster
6// Modified by:
7// Created: 10/17/99
8// RCS-ID: $Id$
9// Copyright: (c) David Webster
10// Licence: wxWindows licence
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_STATBAR_H_
14#define _WX_STATBAR_H_
15
16class WXDLLEXPORT wxStatusBarPM : public wxStatusBar
17{
18 DECLARE_DYNAMIC_CLASS(wxStatusBarPM);
19
20public:
21 // ctors
22 wxStatusBarPM();
23 wxStatusBarPM(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
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
42protected:
43 void CopyFieldsWidth(const int widths[]);
44 void SetFieldsWidth();
45};
46
47#endif // _WX_STATBAR_H_
48