]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/wizard/wizard.cpp
Add tests of other hatched brushes to the drawing sample.
[wxWidgets.git] / samples / wizard / wizard.cpp
index 216324d25c1581b8ee2d3feb9f77bdb5237fda6f..94c95c08201052f7f30b4ec8bd1e45ff70a6a63d 100644 (file)
@@ -383,11 +383,13 @@ bool MyApp::OnInit()
 // ----------------------------------------------------------------------------
 
 MyWizard::MyWizard(wxFrame *frame, bool useSizer)
 // ----------------------------------------------------------------------------
 
 MyWizard::MyWizard(wxFrame *frame, bool useSizer)
-        : wxWizard(frame,wxID_ANY,wxT("Absolutely Useless Wizard"),
-                   wxBitmap(wiztest_xpm),wxDefaultPosition,
-                   wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
 {
 {
-    SetIcon(wxIcon(sample_xpm));
+    SetExtraStyle(wxWIZARD_EX_HELPBUTTON);
+
+    Create(frame,wxID_ANY,wxT("Absolutely Useless Wizard"),
+                   wxBitmap(wiztest_xpm),wxDefaultPosition,
+                   wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
+    SetIcon(wxICON(sample));
 
     // Allow the bitmap to be expanded to fit the page height
     if (frame->GetMenuBar()->IsChecked(Wizard_ExpandBitmap))
 
     // Allow the bitmap to be expanded to fit the page height
     if (frame->GetMenuBar()->IsChecked(Wizard_ExpandBitmap))