Discussion:
Skip the page when wxWizard run
Igor Korot
2014-06-04 03:07:47 UTC
Permalink
Hi, ALL,
I'm looking for a way to skip a page in a wxWizard.
Let's say I have a 3-page wizard.

On the first page I have a wxCheckBox. When it is not checked, I want
a normal processing, i.e.
page1->page2->page3.
However, when the checkbox is checked, I want the proces to be page1->page3.

Is it possible?

Thank you.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Nathan Ridge
2014-06-04 04:18:38 UTC
Permalink
Post by Igor Korot
Hi, ALL,
I'm looking for a way to skip a page in a wxWizard.
Let's say I have a 3-page wizard.
On the first page I have a wxCheckBox. When it is not checked, I want
a normal processing, i.e.
page1->page2->page3.
However, when the checkbox is checked, I want the proces to be page1->page3.
Is it possible?
Yes - use a wxWizardPage instead of wxWizardPageSimple for page1,
and override its GetNext() method to return page2 or page3 depending
on whether or not the checkbox is checked.

Hope that helps,
Nate
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...