added EVT_WIZARD_FINISHED handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-10-16 07:23:58 +00:00
parent 64c2fa134b
commit 8a7dfb14a2

View File

@ -78,6 +78,7 @@ public:
void OnAbout(wxCommandEvent& event);
void OnRunWizard(wxCommandEvent& event);
void OnWizardCancel(wxWizardEvent& event);
void OnWizardFinished(wxWizardEvent& event);
private:
// any class wishing to process wxWindows events must use this macro
@ -278,6 +279,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Wizard_Run, MyFrame::OnRunWizard)
EVT_WIZARD_CANCEL(-1, MyFrame::OnWizardCancel)
EVT_WIZARD_FINISHED(-1, MyFrame::OnWizardFinished)
END_EVENT_TABLE()
BEGIN_EVENT_TABLE(wxRadioboxPage, wxWizardPageSimple)
@ -389,6 +391,11 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
wizard->Destroy();
}
void MyFrame::OnWizardFinished(wxWizardEvent& WXUNUSED(event))
{
wxLogStatus(this, wxT("The wizard finished successfully."));
}
void MyFrame::OnWizardCancel(wxWizardEvent& WXUNUSED(event))
{
wxLogStatus(this, wxT("The wizard was cancelled."));