- int * m_statusWidths;
- int m_nFields;
- wxString * m_statusStrings;
- int m_borderX;
- int m_borderY;
- wxFont m_defaultStatusBarFont;
- wxPen m_mediumShadowPen;
- wxPen m_hilightPen;
-
- DECLARE_EVENT_TABLE()
+
+ virtual void DrawFieldText(wxDC& dc, const wxRect& rc, int i, int textHeight);
+ virtual void DrawField(wxDC& dc, int i, int textHeight);
+
+ void SetBorderX(int x);
+ void SetBorderY(int y);
+
+ virtual void InitColours();
+
+ // true if the status bar shows the size grip: for this it must have
+ // wxSTB_SIZEGRIP style and the window it is attached to must be resizable
+ // and not maximized
+ bool ShowsSizeGrip() const;
+
+ // returns the position and the size of the size grip
+ wxRect GetSizeGripRect() const;
+
+ // common part of all ctors
+ void Init();
+
+ // the last known height of the client rect
+ int m_lastClientHeight;
+
+ // the absolute widths of the status bar panes in pixels
+ wxArrayInt m_widthsAbs;
+
+ int m_borderX;
+ int m_borderY;
+
+ wxPen m_mediumShadowPen;
+ wxPen m_hilightPen;
+
+ virtual wxSize DoGetBestSize() const;
+
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarGeneric)