X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..3baaf31317b1380ba9f33f8a23ff04bd20356d63:/samples/wizard/wizard.cpp?ds=inline diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index c405271857..6e54020f40 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -313,10 +313,10 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) { - wxWizard *wizard = wxWizard::Create(this, -1, - "Absolutely Useless Wizard", - BMP_WIZARD_1); - + wxWizard *wizard = new wxWizard(this, -1, + "Absolutely Useless Wizard", + BMP_WIZARD_1); + // a wizard page may be either an object of predefined class wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard); wxStaticText *text = new wxStaticText(page1, -1, @@ -352,5 +352,5 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnWizardCancel(wxWizardEvent& WXUNUSED(event)) { - wxLogStatus(this, "The wizard was cancelled."); + wxLogStatus(this, wxT("The wizard was cancelled.")); }