X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f18835abd49fb620f371e0d956d25ab631aab0..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/wizard.h diff --git a/include/wx/wizard.h b/include/wx/wizard.h index 2d38be5b87..59fe14f870 100644 --- a/include/wx/wizard.h +++ b/include/wx/wizard.h @@ -147,7 +147,15 @@ public: void SetPrev(wxWizardPage *prev) { m_prev = prev; } void SetNext(wxWizardPage *next) { m_next = next; } - // a convenience function to make the pages follow each other + // Convenience functions to make the pages follow each other without having + // to call their SetPrev() or SetNext() explicitly. + wxWizardPageSimple& Chain(wxWizardPageSimple* next) + { + SetNext(next); + next->SetPrev(this); + return *next; + } + static void Chain(wxWizardPageSimple *first, wxWizardPageSimple *second) { wxCHECK_RET( first && second,