From e5e0c72763f314caedd4bcbfccd2dde02317c976 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Aug 2006 15:13:36 +0000 Subject: [PATCH] call Update() from SetStatusText() to ensure that the message is shown to the user immediately git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/statusbr.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index bb1b36f560..281be6f0fd 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -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(); } } -- 2.45.2