]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stubs/statusbr.h
Fixed some wxDragImage bugs
[wxWidgets.git] / include / wx / stubs / statusbr.h
CommitLineData
7c23a0b0 1///////////////////////////////////////////////////////////////////////////////
5e25ba90
JS
2// Name: statusbr.h
3// Purpose: native implementation of wxStatusBar. Optional; can use generic
4// version instead.
7c23a0b0
JS
5// Author: AUTHOR
6// Modified by:
7// Created: ??/??/98
8// RCS-ID: $Id$
9// Copyright: (c) AUTHOR
10// Licence: wxWindows licence
11///////////////////////////////////////////////////////////////////////////////
12
5e25ba90
JS
13#ifndef _WX_STATBAR_H_
14#define _WX_STATBAR_H_
7c23a0b0
JS
15
16#ifdef __GNUG__
5e25ba90 17#pragma interface "statbar.h"
7c23a0b0
JS
18#endif
19
5e25ba90
JS
20#include "wx/generic/statusbr.h"
21
7c23a0b0
JS
22class WXDLLEXPORT wxStatusBarXX : public wxStatusBar
23{
24 DECLARE_DYNAMIC_CLASS(wxStatusBarXX);
25
26public:
27 // ctors
28 wxStatusBarXX();
29 wxStatusBarXX(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
30
31 // create status line
32 bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
33
34 // a status line can have several (<256) fields numbered from 0
35 virtual void SetFieldsCount(int number = 1, const int widths[] = NULL);
36
5e25ba90 37 // each field of status line has its own text
7c23a0b0
JS
38 virtual void SetStatusText(const wxString& text, int number = 0);
39 virtual wxString GetStatusText(int number = 0) const;
40
41 // set status line fields' widths
42 virtual void SetStatusWidths(int n, const int widths_field[]);
43
7c23a0b0
JS
44 void OnSize(wxSizeEvent& event);
45
46 DECLARE_EVENT_TABLE()
34138703
JS
47
48protected:
49 void CopyFieldsWidth(const int widths[]);
50 void SetFieldsWidth();
7c23a0b0
JS
51};
52
53#endif