]> git.saurik.com Git - wxWidgets.git/commitdiff
call Update() from SetStatusText() to ensure that the message is shown to the user...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Aug 2006 15:13:36 +0000 (15:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Aug 2006 15:13:36 +0000 (15:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/statusbr.cpp

index bb1b36f5604b6b3cce375bef2602e076295769ad..281be6f0fddf53005710d8838c3ef8ce8135603e 100644 (file)
@@ -148,7 +148,12 @@ void wxStatusBarGeneric::SetStatusText(const wxString& text, int number)
         wxRect rect;
         GetFieldRect(number, rect);
 
-        Refresh( true, &rect );
+        Refresh(true, &rect);
+
+        // it's common to show some text in the status bar before starting a
+        // relatively lengthy operation, ensure that the text is shown to the
+        // user immediately and not after the lengthy operation end
+        Update();
     }
 }