Allow updating wxBusyInfo text while it's shown

Add UpdateText() and UpdateLabel() updating the text (i.e. possibly
containing markup) or the label (just plain text) shown in the window.

Closes #14743.

Closes https://github.com/Kvaz1r/wxWidgets.git BusyInfoUpdateText14743
This commit is contained in:
Kvaz1r
2019-09-07 16:31:28 +03:00
committed by Vadim Zeitlin
parent 32eb6f1a2c
commit 16b08c6ef9
3 changed files with 43 additions and 14 deletions

View File

@@ -111,6 +111,23 @@ public:
*/
wxBusyInfo(const wxString& msg, wxWindow* parent = NULL);
/**
Update the information text.
The @a text string may contain markup as described in
wxControl::SetLabelMarkup().
@since 3.1.3
*/
void UpdateText(const wxString& str);
/**
Same as UpdateText() but doesn't interpret the string as containing markup.
@since 3.1.3
*/
void UpdateLabel(const wxString& str);
/**
Hides and closes the window containing the information text.
*/