]> git.saurik.com Git - wxWidgets.git/commitdiff
Call PositionStatusBar from SetStatusBar
authorRobin Dunn <robin@alldunn.com>
Fri, 14 May 2004 21:41:53 +0000 (21:41 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 14 May 2004 21:41:53 +0000 (21:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/frame.h

index 7a0ad8453a39ff5997ea6196d70a8e785c96f7f0..8f60343fb105489121cd970d3c39312393d929d8 100644 (file)
@@ -112,7 +112,8 @@ public:
     virtual wxStatusBar *GetStatusBar() const { return m_frameStatusBar; }
 
     // sets the main status bar
-    void SetStatusBar(wxStatusBar *statBar) { m_frameStatusBar = statBar; }
+    void SetStatusBar(wxStatusBar *statBar)
+        { m_frameStatusBar = statBar; PositionStatusBar(); }
 
     // forward these to status bar
     virtual void SetStatusText(const wxString &text, int number = 0);