]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected creation of wxWizard (wxWizardBase::Create class function is
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sat, 8 Sep 2001 19:15:26 +0000 (19:15 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sat, 8 Sep 2001 19:15:26 +0000 (19:15 +0000)
hidden by wxWizard::Create object method)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/wizard/wizard.cpp

index c40527185714e2e6fbfe71a47052656029be265e..5268716caa5ab929ef65fa6e133c3fcef980d58d 100644 (file)
@@ -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,