]> git.saurik.com Git - wxWidgets.git/commitdiff
Added help button
authorJulian Smart <julian@anthemion.co.uk>
Tue, 29 Sep 2009 07:15:14 +0000 (07:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 29 Sep 2009 07:15:14 +0000 (07:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/wizard/wizard.cpp

index 216324d25c1581b8ee2d3feb9f77bdb5237fda6f..1d9427753d9c76fcae640c9285ae02e44ff84b1c 100644 (file)
@@ -383,10 +383,12 @@ bool MyApp::OnInit()
 // ----------------------------------------------------------------------------
 
 MyWizard::MyWizard(wxFrame *frame, bool useSizer)
-        : wxWizard(frame,wxID_ANY,wxT("Absolutely Useless Wizard"),
-                   wxBitmap(wiztest_xpm),wxDefaultPosition,
-                   wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
 {
+    SetExtraStyle(wxWIZARD_EX_HELPBUTTON);
+
+    Create(frame,wxID_ANY,wxT("Absolutely Useless Wizard"),
+                   wxBitmap(wiztest_xpm),wxDefaultPosition,
+                   wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
     SetIcon(wxIcon(sample_xpm));
 
     // Allow the bitmap to be expanded to fit the page height