Switching Between Multiple Pages Using Radio Buttons

If you have more than two pages on your macro page, you can use radio buttons to switch between the pages, rather than an on/off switch.

Prerequisite

You have created a Stack element that contains four groups, one for each page.

You have added a Variables folder to the macro page.

Procedure

  1. In the GUI Tree, right-click the Variables folder and select Create > Integer.
  2. Name the variable pages.
  3. In the Properties section, set Minimum to 0 and Maximum to 3.
  4. On the macro page level, add a radio switch for each page.
  5. For all the radio buttons, set Value to @pages.
  6. Set the Onvalue parameters to 0, 1, 2, and 3, respectively, so that they match the four pages.
  7. For the stack, set Value to @pages.
  8. Activate Test Macro Page and use the radio buttons to open the different pages.

Result

You can now click one of the radio buttons to display the corresponding page of the stack.