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

@@ -17,6 +17,7 @@
class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxWindow;
class WXDLLIMPEXP_FWD_CORE wxControl;
//--------------------------------------------------------------------------------
// wxBusyInfo
@@ -37,12 +38,16 @@ public:
Init(wxBusyInfoFlags().Parent(parent).Label(message));
}
void UpdateText(const wxString& str);
void UpdateLabel(const wxString& str);
virtual ~wxBusyInfo();
private:
void Init(const wxBusyInfoFlags& flags);
wxFrame *m_InfoFrame;
wxControl *m_text;
wxDECLARE_NO_COPY_CLASS(wxBusyInfo);
};