X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d143b6689b9ce3f02398d1ee4129f6a21024183..7e81e3a796eec142428ca04b44015956031eeb0f:/samples/wizard/wizard.cpp diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index fcbcdb6b8f..215f686f85 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -414,8 +414,10 @@ MyWizard::MyWizard(wxFrame *frame, bool useSizer) wxValidationPage *page4 = new wxValidationPage(this); // set the page order using a convenience function - could also use - // SetNext/Prev directly as below - wxWizardPageSimple::Chain(page3, page4); + // SetNext/Prev directly as below, but Chain() is shorter, avoids the risk + // of an error and can itself be chained, e.g. you could write + // page3.Chain(page4).Chain(page5) and so on. + page3->Chain(page4); // this page is not a wxWizardPageSimple, so we use SetNext/Prev to insert // it into the chain of pages