git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15742
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
the program decided to continue the operation (e.g., user didn't
confirm it)
*/
the program decided to continue the operation (e.g., user didn't
confirm it)
*/
- void Resume() { m_state = Continue; }
protected:
// callback for optional abort button
protected:
// callback for optional abort button
IMPLEMENT_CLASS(wxProgressDialog, wxDialog)
// ============================================================================
IMPLEMENT_CLASS(wxProgressDialog, wxDialog)
// ============================================================================
+// wxProgressDialog implementation
// ============================================================================
// ----------------------------------------------------------------------------
// ============================================================================
// ----------------------------------------------------------------------------
+// wxProgressDialog creation
// ----------------------------------------------------------------------------
wxProgressDialog::wxProgressDialog(wxString const &title,
// ----------------------------------------------------------------------------
wxProgressDialog::wxProgressDialog(wxString const &title,
+// ----------------------------------------------------------------------------
+// wxProgressDialog operations
+// ----------------------------------------------------------------------------
+
bool
wxProgressDialog::Update(int value, const wxString& newmsg)
{
bool
wxProgressDialog::Update(int value, const wxString& newmsg)
{
return m_state != Canceled;
}
return m_state != Canceled;
}
+void wxProgressDialog::Resume()
+{
+ m_state = Continue;
+
+ // it may have been disabled by OnCancel(), so enable it back to let the
+ // user interrupt us again if needed
+ m_btnAbort->Enable();
+}
+
// ----------------------------------------------------------------------------
// event handlers
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// event handlers
// ----------------------------------------------------------------------------