]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/statbr95.h
Began work on print dialogs. Now wxPrintDialog
[wxWidgets.git] / include / wx / msw / statbr95.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: msw/statbr95.h
3 // Purpose: native implementation of wxStatusBar
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 04.04.98
7 // RCS-ID: $Id$
8 // Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _STATBR95_H
13 #define _STATBR95_H
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "statbr95.h"
17 #endif
18
19 #if wxUSE_NATIVE_STATUSBAR
20
21 class WXDLLEXPORT wxStatusBar95 : public wxStatusBarBase
22 {
23 public:
24 // ctors and such
25 wxStatusBar95();
26 wxStatusBar95(wxWindow *parent,
27 wxWindowID id = wxID_ANY,
28 long style = wxST_SIZEGRIP,
29 const wxString& name = wxEmptyString)
30 {
31 (void)Create(parent, id, style, name);
32 }
33
34 bool Create(wxWindow *parent,
35 wxWindowID id = wxID_ANY,
36 long style = wxST_SIZEGRIP,
37 const wxString& name = wxEmptyString);
38
39 virtual ~wxStatusBar95();
40
41 // a status line can have several (<256) fields numbered from 0
42 virtual void SetFieldsCount(int number = 1, const int *widths = NULL);
43
44 // each field of status line has it's own text
45 virtual void SetStatusText(const wxString& text, int number = 0);
46 virtual wxString GetStatusText(int number = 0) const;
47
48 // set status line fields' widths
49 virtual void SetStatusWidths(int n, const int widths_field[]);
50
51 // set status line fields' styles
52 virtual void SetStatusStyles(int n, const int styles[]);
53
54 // sets the minimal vertical size of the status bar
55 virtual void SetMinHeight(int height);
56
57 // get the position and size of the field's internal bounding rectangle
58 virtual bool GetFieldRect(int i, wxRect& rect) const;
59
60 // get the border size
61 virtual int GetBorderX() const;
62 virtual int GetBorderY() const;
63
64 protected:
65 void CopyFieldsWidth(const int widths[]);
66 void SetFieldsWidth();
67
68 // override base class virtual
69 void DoMoveWindow(int x, int y, int width, int height);
70
71 private:
72 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBar95)
73 };
74
75 #endif // wxUSE_NATIVE_STATUSBAR
76
77 #endif