Matteo
Matteo

Reputation: 1377

How to dynamically select the next page of a wizard

I need to create a wizard in which the first page allows the user to select the type of the element to create, and the following pages create and set-up the selected type. In several aspects it is similar to the standard New Wizard (File->new...) but I need more control on what's happening.

How can I do that? Does there is any tutorial about that?

Upvotes: 3

Views: 1663

Answers (1)

Juho Ojala
Juho Ojala

Reputation: 233

I see three options on how to achieve this:

  1. Override the getNextPage(...) function of Wizard

    or

  2. Add the remaining pages to the wizard just-in-time. That is, after the user has selected what type of element to create.

    or

  3. Make the remaining wizard pages dynamic in such a way that they have different contents depending on what kind of element is being created

I recommend the first option.

Upvotes: 3

Related Questions