]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/wizard.h
Catching dclick event from a spinbutton or spin control
[wxWidgets.git] / include / wx / wizard.h
index 55fd5c82cfb0adb70b76b64e9b4d64ea4f4d750c..8ff916d7a0289da7374559647a05d3e0828d42e6 100644 (file)
@@ -194,13 +194,22 @@ public:
 
     // wxWizard should be created using "new wxWizard" now, not with Create()
 #ifdef WXWIN_COMPATIBILITY_2_2
-    wxWizard *Create(wxWindow *parent,
-                     int id = -1,
-                     const wxString& title = wxEmptyString,
-                     const wxBitmap& bitmap = wxNullBitmap,
-                     const wxPoint& pos = wxDefaultPosition,
-                     const wxSize& size = wxDefaultSize)
+    static wxWizard *Create(wxWindow *parent,
+                            int id = -1,
+                            const wxString& title = wxEmptyString,
+                            const wxBitmap& bitmap = wxNullBitmap,
+                            const wxPoint& pos = wxDefaultPosition,
+                            const wxSize& size = wxDefaultSize);
 #endif // WXWIN_COMPATIBILITY_2_2
+
+    // the methods below may be overridden by the derived classes to provide
+    // custom logic for determining the pages order
+
+    virtual bool HasNextPage(wxWizardPage *page)
+        { return page->GetNext() != NULL; }
+
+    virtual bool HasPrevPage(wxWizardPage *page)
+        { return page->GetPrev() != NULL; }
 };
 
 // include the real class declaration