Hello all,
How can I get the current page on EVT_WIZARD_FINISHED in a Wizard ?
event.GetPage returns None
and
wizard.GetCurrentPage returns None too.
Thanks
Norbert
Hello all,
How can I get the current page on EVT_WIZARD_FINISHED in a Wizard ?
event.GetPage returns None
and
wizard.GetCurrentPage returns None too.
Thanks
Norbert
Norbert Klamann wrote:
Hello all,
How can I get the current page on EVT_WIZARD_FINISHED in a Wizard ?event.GetPage returns None
and
wizard.GetCurrentPage returns None too.
The wizard uses the fact that doing currentPage = currentPage->GetNext() sets the current page to NULL to know when it has reached the end and when to send the _FINISHED event. If you really need it in that handler then you can keep track of what the previously active page was by catching the _CHANGED event and saving what the current page was then.
--
Robin Dunn
Software Craftsman
Robin Dunn schrieb:
Norbert Klamann wrote:
Hello all,
How can I get the current page on EVT_WIZARD_FINISHED in a Wizard ?event.GetPage returns None
and
wizard.GetCurrentPage returns None too.
The wizard uses the fact that doing currentPage = currentPage->GetNext() sets the current page to NULL to know when it has reached the end and when to send the _FINISHED event. If you really need it in that handler then you can keep track of what the previously active page was by catching the _CHANGED event and saving what the current page was then.
That is plausible but it should be documented in the wxWidgets Documentation. Shall I file a bug ?
Norbert
Norbert Klamann wrote:
Robin Dunn schrieb:
Norbert Klamann wrote:
Hello all,
How can I get the current page on EVT_WIZARD_FINISHED in a Wizard ?event.GetPage returns None
and
wizard.GetCurrentPage returns None too.
The wizard uses the fact that doing currentPage = currentPage->GetNext() sets the current page to NULL to know when it has reached the end and when to send the _FINISHED event. If you really need it in that handler then you can keep track of what the previously active page was by catching the _CHANGED event and saving what the current page was then.
That is plausible but it should be documented in the wxWidgets Documentation. Shall I file a bug ?
Sure.
--
Robin Dunn
Software Craftsman