From: Vadim Zeitlin Date: Thu, 16 Oct 2003 07:23:58 +0000 (+0000) Subject: added EVT_WIZARD_FINISHED handler X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8a7dfb14a28a1a3f56d287bec54f94ca6590a4dc added EVT_WIZARD_FINISHED handler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index 1cd0ac9831..8e10fe0921 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -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."));