>I am in need of a "Wizard" interface for my apps.
>
>I have looked at the general ones that come in VFP, and other programs to get an idea of how the operate.
>
>I comme back with the idea that they are a single form class that has a single page and all controled by code.
>
>Has anyone done one and what were your methods and or experiences?
Sorry for the delay: I am just catching up after a heavy week.
All my base objects have a property to set an optional wizard number page. When an end user presses a "wizard" button (also this is a default of a base form) a dialog form is populated with references to the objects contained in the main form and the buttons at the bottom of the popup form are activated accordingly (first,next,prior,last,cancel,ok). All my data objects have also references to an associated label so that building the wizards at runtime is fairly easy.
The dialog form simply contains a pageframe without tabs or pages. Pages are added dinamically when the form is created.
Having all this is a simple matter of looping through all the controls in a form and adding the ones that have the wizard page property initialized to the right page. It looks very impressive and is fairly easy to implement.
HTH
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only