From 689b9b78a3fe1d5269bf08246ae88d7d27cc519b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 27 Jun 2018 19:37:23 +0200 Subject: [PATCH] Document that SetStatusText() updates the display immediately This is done by explicitly calling Update() in the generic version and seems to also be done by the native MSW one, even if it's not documented to do it. --- interface/wx/frame.h | 6 +++++- interface/wx/statusbr.h | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/interface/wx/frame.h b/interface/wx/frame.h index f2753026cb..06910df8f2 100644 --- a/interface/wx/frame.h +++ b/interface/wx/frame.h @@ -427,7 +427,11 @@ public: void SetStatusBarPane(int n); /** - Sets the status bar text and redraws the status bar. + Sets the status bar text and updates the status bar display. + + This is a simple wrapper for wxStatusBar::SetStatusText() which doesn't + do anything if the frame has no status bar, i.e. GetStatusBar() returns + @NULL. @param text The text for the status field. diff --git a/interface/wx/statusbr.h b/interface/wx/statusbr.h index 0acf382f52..bdd39c5023 100644 --- a/interface/wx/statusbr.h +++ b/interface/wx/statusbr.h @@ -279,7 +279,9 @@ public: /** Sets the status text for the @a i-th field. - The given text will replace the current text. + The given text will replace the current text. The display of the status + bar is updated immediately, so there is no need to call + wxWindow::Update() after calling this function. Note that if PushStatusText() had been called before the new text will also replace the last saved value to make sure that the next call to