Accessing the Pages of a Wizard with Origin C

The Wizard example demonstrates how to access the pages of a wizard in a Dialog Builder resource. To access the pages in the Wizard below the example program uses the Origin C Dialog, WizardSheet, and PropertyPage classes. The example dialog is launched by executing the function LaunchWizard in the source file Wizard.cpp found in this zip file, under the \Dialog Builder\Wizard subfolder.

As written the Wizard example contains three pages (as shown below) but the second page is hidden. The WizPage2 class member function [javascript:kadovTextPopup(this) GetPageShowStatus] causes the wizard to not display (hide) the second page of the wizard. To show the second page either comment out this function or modify it to return 1. This feature allows developers to dynamically hide and show pages in a wizard on an as needed basis.

Accessing the Pages of a Wizard with Origin C image147.gif

To launch the Wizard above:

  1. Open the source file Wizard.cpp in Code Builder.
  2. Add Wizard.cpp to the Code Builder workspace by activating it and pressing the CTRL + W keys.
  3. Build Wizard.cpp by clicking the Build button Accessing the Pages of a Wizard with Origin C image12.gif.
  4. Type Wizard() in the Script Window or LabTalk Console and press the ENTER key.