git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14920
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// callback to disable "hard" window closing
void OnClose(wxCloseEvent& event);
// callback to disable "hard" window closing
void OnClose(wxCloseEvent& event);
- // callback to detect when the dialog is closed
- void OnShow(wxShowEvent& event);
-
// must be called to reenable the other windows temporarily disabled while
// the dialog was shown
void ReenableOtherWindows();
// must be called to reenable the other windows temporarily disabled while
// the dialog was shown
void ReenableOtherWindows();
BEGIN_EVENT_TABLE(wxProgressDialog, wxDialog)
EVT_BUTTON(wxID_CANCEL, wxProgressDialog::OnCancel)
BEGIN_EVENT_TABLE(wxProgressDialog, wxDialog)
EVT_BUTTON(wxID_CANCEL, wxProgressDialog::OnCancel)
- EVT_SHOW(wxProgressDialog::OnShow)
-
EVT_CLOSE(wxProgressDialog::OnClose)
END_EVENT_TABLE()
EVT_CLOSE(wxProgressDialog::OnClose)
END_EVENT_TABLE()
-void wxProgressDialog::OnShow(wxShowEvent& event)
-{
- // if the dialog is being hidden, it was closed, so reenable other windows
- // now
- if ( event.GetShow() )
- {
- ReenableOtherWindows();
- }
-}
-
// ----------------------------------------------------------------------------
// destruction
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// destruction
// ----------------------------------------------------------------------------