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:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user