1998-05-20 14:12:05 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msw/statbr95.h
|
|
|
|
// Purpose: native implementation of wxStatusBar
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04.04.98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
1998-08-07 23:52:45 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _STATBR95_H
|
|
|
|
#define _STATBR95_H
|
|
|
|
|
1998-07-03 16:36:10 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "statbr95.h"
|
|
|
|
#endif
|
|
|
|
|
1998-09-25 13:28:52 +00:00
|
|
|
#if wxUSE_NATIVE_STATUSBAR
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxStatusBar95 : public wxStatusBar
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStatusBar95);
|
|
|
|
|
|
|
|
public:
|
|
|
|
// ctors
|
|
|
|
wxStatusBar95();
|
1998-06-22 22:27:14 +00:00
|
|
|
wxStatusBar95(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// create status line
|
1998-06-22 22:27:14 +00:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// a status line can have several (<256) fields numbered from 0
|
1998-07-10 10:39:48 +00:00
|
|
|
virtual void SetFieldsCount(int number = 1, const int widths[] = NULL);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// each field of status line has it's own text
|
1998-07-04 15:17:59 +00:00
|
|
|
virtual void SetStatusText(const wxString& text, int number = 0);
|
1998-05-20 14:12:05 +00:00
|
|
|
virtual wxString GetStatusText(int number = 0) const;
|
|
|
|
|
|
|
|
// set status line fields' widths
|
1998-07-10 10:39:48 +00:00
|
|
|
virtual void SetStatusWidths(int n, const int widths_field[]);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// we're going to process WM_SIZE (of the parent window)
|
|
|
|
void OnSize(wxSizeEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
protected:
|
1998-07-10 10:39:48 +00:00
|
|
|
void CopyFieldsWidth(const int widths[]);
|
1998-05-20 14:12:05 +00:00
|
|
|
void SetFieldsWidth();
|
|
|
|
};
|
|
|
|
|
1998-09-25 13:28:52 +00:00
|
|
|
#endif // wxUSE_NATIVE_STATUSBAR
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
#endif //_STATBR95_H
|