wxWizard - change page via code? Topic is solved
wxWizard - change page via code?
Is there a way to change to any given page in a wxWizard?
-
- wxWorld Domination!
- Posts: 1059
- Joined: Sun Dec 30, 2007 6:40 pm
- Location: Canada
Hi,
Not sure why it's not in the documentation, but you should be able to call wxWizard::ShowPage (see wizard.h in wx/include/wx/generic)
Snippet below:
Hope that helps,
Jim
Not sure why it's not in the documentation, but you should be able to call wxWizard::ShowPage (see wizard.h in wx/include/wx/generic)
Snippet below:
Code: Select all
// show the prev/next page, but call TransferDataFromWindow on the current
// page first and return false without changing the page if
// TransferDataFromWindow() returns false - otherwise, returns true
bool ShowPage(wxWizardPage *page, bool goingForward = true);
Jim
OS: Vista SP1, wxWidgets 2.8.7.