1998-05-20 10:12:05 -04: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 19:52:45 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _STATBR95_H
|
|
|
|
#define _STATBR95_H
|
|
|
|
|
1998-07-03 12:36:10 -04:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "statbr95.h"
|
|
|
|
#endif
|
|
|
|
|
1998-09-25 09:28:52 -04:00
|
|
|
#if wxUSE_NATIVE_STATUSBAR
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxStatusBar95 : public wxStatusBar
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStatusBar95);
|
|
|
|
|
|
|
|
public:
|
|
|
|
// ctors
|
|
|
|
wxStatusBar95();
|
1998-06-22 18:27:14 -04:00
|
|
|
wxStatusBar95(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// create status line
|
1998-06-22 18:27:14 -04:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// a status line can have several (<256) fields numbered from 0
|
1998-07-10 06:39:48 -04:00
|
|
|
virtual void SetFieldsCount(int number = 1, const int widths[] = NULL);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// each field of status line has it's own text
|
1998-07-04 11:17:59 -04:00
|
|
|
virtual void SetStatusText(const wxString& text, int number = 0);
|
1998-05-20 10:12:05 -04:00
|
|
|
virtual wxString GetStatusText(int number = 0) const;
|
|
|
|
|
|
|
|
// set status line fields' widths
|
1998-07-10 06:39:48 -04:00
|
|
|
virtual void SetStatusWidths(int n, const int widths_field[]);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// we're going to process WM_SIZE (of the parent window)
|
|
|
|
void OnSize(wxSizeEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
protected:
|
1998-07-10 06:39:48 -04:00
|
|
|
void CopyFieldsWidth(const int widths[]);
|
1998-05-20 10:12:05 -04:00
|
|
|
void SetFieldsWidth();
|
|
|
|
};
|
|
|
|
|
1998-09-25 09:28:52 -04:00
|
|
|
#endif // wxUSE_NATIVE_STATUSBAR
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#endif //_STATBR95_H
|