1998-05-20 10:12:05 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msw/statbr95.h
|
|
|
|
// Purpose: native implementation of wxStatusBar
|
|
|
|
// Author: Vadim Zeitlin
|
1999-10-09 03:13:13 -04:00
|
|
|
// Modified by:
|
1998-05-20 10:12:05 -04:00
|
|
|
// Created: 04.04.98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _STATBR95_H
|
|
|
|
#define _STATBR95_H
|
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
#if wxUSE_NATIVE_STATUSBAR
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
class WXDLLEXPORT wxStatusBar95 : public wxStatusBarBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
|
|
|
public:
|
2000-02-04 20:57:38 -05:00
|
|
|
// ctors and such
|
|
|
|
wxStatusBar95();
|
|
|
|
wxStatusBar95(wxWindow *parent,
|
2004-09-03 21:53:42 -04:00
|
|
|
wxWindowID id = wxID_ANY,
|
2000-02-04 20:57:38 -05:00
|
|
|
long style = wxST_SIZEGRIP,
|
2006-09-06 13:36:22 -04:00
|
|
|
const wxString& name = wxStatusBarNameStr)
|
2000-02-04 20:57:38 -05:00
|
|
|
{
|
|
|
|
(void)Create(parent, id, style, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
2004-09-03 21:53:42 -04:00
|
|
|
wxWindowID id = wxID_ANY,
|
2000-02-04 20:57:38 -05:00
|
|
|
long style = wxST_SIZEGRIP,
|
2006-09-06 13:36:22 -04:00
|
|
|
const wxString& name = wxStatusBarNameStr);
|
2000-02-04 20:57:38 -05:00
|
|
|
|
|
|
|
virtual ~wxStatusBar95();
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// a status line can have several (<256) fields numbered from 0
|
|
|
|
virtual void SetFieldsCount(int number = 1, const int *widths = NULL);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// each field of status line has it's own text
|
|
|
|
virtual void SetStatusText(const wxString& text, int number = 0);
|
|
|
|
virtual wxString GetStatusText(int number = 0) const;
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// set status line fields' widths
|
|
|
|
virtual void SetStatusWidths(int n, const int widths_field[]);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2004-07-25 12:13:52 -04:00
|
|
|
// set status line fields' styles
|
|
|
|
virtual void SetStatusStyles(int n, const int styles[]);
|
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// sets the minimal vertical size of the status bar
|
|
|
|
virtual void SetMinHeight(int height);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// get the position and size of the field's internal bounding rectangle
|
|
|
|
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
// get the border size
|
|
|
|
virtual int GetBorderX() const;
|
|
|
|
virtual int GetBorderY() const;
|
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
virtual WXLRESULT MSWWindowProc(WXUINT nMsg,
|
|
|
|
WXWPARAM wParam,
|
|
|
|
WXLPARAM lParam);
|
1998-05-20 10:12:05 -04:00
|
|
|
protected:
|
2000-02-04 20:57:38 -05:00
|
|
|
void CopyFieldsWidth(const int widths[]);
|
|
|
|
void SetFieldsWidth();
|
|
|
|
|
2007-04-01 10:53:02 -04:00
|
|
|
// override some base class virtuals
|
|
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
2000-03-11 19:26:21 -05:00
|
|
|
|
2000-02-04 20:57:38 -05:00
|
|
|
private:
|
2003-08-05 15:20:51 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBar95)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
1998-09-25 09:28:52 -04:00
|
|
|
#endif // wxUSE_NATIVE_STATUSBAR
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-10-09 03:13:13 -04:00
|
|
|
#endif
|