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
This commit is contained in:
Vadim Zeitlin 2006-08-27 15:13:36 +00:00
parent 737d3175f3
commit e5e0c72763

View File

@ -148,7 +148,12 @@ void wxStatusBarGeneric::SetStatusText(const wxString& text, int number)
wxRect rect; wxRect rect;
GetFieldRect(number, 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();
} }
} }