corrected creation of wxWizard (wxWizardBase::Create class function is
hidden by wxWizard::Create object method) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -313,10 +313,10 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxWizard *wizard = wxWizard::Create(this, -1,
|
wxWizard *wizard = new wxWizard(this, -1,
|
||||||
"Absolutely Useless Wizard",
|
"Absolutely Useless Wizard",
|
||||||
BMP_WIZARD_1);
|
BMP_WIZARD_1);
|
||||||
|
|
||||||
// a wizard page may be either an object of predefined class
|
// a wizard page may be either an object of predefined class
|
||||||
wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard);
|
wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard);
|
||||||
wxStaticText *text = new wxStaticText(page1, -1,
|
wxStaticText *text = new wxStaticText(page1, -1,
|
||||||
|
Reference in New Issue
Block a user