// 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();
BEGIN_EVENT_TABLE(wxProgressDialog, wxDialog)
EVT_BUTTON(wxID_CANCEL, wxProgressDialog::OnCancel)
- EVT_SHOW(wxProgressDialog::OnShow)
-
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
// ----------------------------------------------------------------------------