The VTScada Wizard Engine
A Wizard wraps up a configuration task into a series of steps where input validation can be made at each stage and the user is free to go back and alter previously entered information until the Wizard is finalized. A simple, uncluttered user-interface makes the Wizard particularly suitable for guiding inexperienced users through complex procedures.
VTScada provides a Wizard Engine that manages the task of steering your module through its various states. The Wizard Engine also provides several useful support functions.
VTScada includes a wizard template that has been provided to assist programmers in creating their own wizards. This template is installed with the VTScada software, and can be found in the Example folder within the VTScada installation directory: C:\VTScada\Examples\Wizard.SRC.
You can import this module as a page in the Idea Studio (File menu >> Import). Make sure that you add the page to the menu, then close the Idea Studio and open the wizard page. The sample wizard will open in a pop-up, demonstrating several features that you can use in your own wizards. (Wizard pages are generally not added to the menu, but rather are opened explicitly, when required.)
To see the example code in action, you should comment out the two parameters and in the CreateAndSaveTag state, change the tag type from the mythical "SampleTag" to "ContextType".
The WizardEngine includes a public constant named "Version", so that scripts can handle future changes to the WizardEngine functionality. This property was introduced at version 2. The absence of this property indicates version 1.