1998-08-08 05:19:47 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
1998-08-09 12:31:10 -04:00
|
|
|
// Name: statusbr.h
|
|
|
|
// Purpose: native implementation of wxStatusBar. Optional; can use generic
|
|
|
|
// version instead.
|
1998-08-08 05:19:47 -04:00
|
|
|
// Author: AUTHOR
|
|
|
|
// Modified by:
|
|
|
|
// Created: ??/??/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) AUTHOR
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-09 12:31:10 -04:00
|
|
|
#ifndef _WX_STATBAR_H_
|
|
|
|
#define _WX_STATBAR_H_
|
1998-08-08 05:19:47 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1998-08-09 12:31:10 -04:00
|
|
|
#pragma interface "statbar.h"
|
1998-08-08 05:19:47 -04:00
|
|
|
#endif
|
|
|
|
|
1998-08-09 12:31:10 -04:00
|
|
|
#include "wx/generic/statusbr.h"
|
|
|
|
|
1998-08-08 05:19:47 -04:00
|
|
|
class WXDLLEXPORT wxStatusBarXX : public wxStatusBar
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStatusBarXX);
|
|
|
|
|
|
|
|
public:
|
|
|
|
// ctors
|
|
|
|
wxStatusBarXX();
|
|
|
|
wxStatusBarXX(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
|
|
|
|
|
|
|
|
// create status line
|
|
|
|
bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
|
|
|
|
|
|
|
|
// a status line can have several (<256) fields numbered from 0
|
|
|
|
virtual void SetFieldsCount(int number = 1, const int widths[] = NULL);
|
|
|
|
|
1998-08-09 12:31:10 -04:00
|
|
|
// each field of status line has its own text
|
1998-08-08 05:19:47 -04:00
|
|
|
virtual void SetStatusText(const wxString& text, int number = 0);
|
|
|
|
virtual wxString GetStatusText(int number = 0) const;
|
|
|
|
|
|
|
|
// set status line fields' widths
|
|
|
|
virtual void SetStatusWidths(int n, const int widths_field[]);
|
|
|
|
|
|
|
|
void OnSize(wxSizeEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
1998-08-14 20:23:28 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void CopyFieldsWidth(const int widths[]);
|
|
|
|
void SetFieldsWidth();
|
1998-08-08 05:19:47 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|