Adding a Yes/No confirmation to an Exit button

<< Click to Display Table of Contents >>

Navigation:  User Guide >

Adding a Yes/No confirmation to an Exit button

Previous pageReturn to chapter overviewNext page

 

To add a confirmation: Are you sure? Yes/No to an Exit button follow these steps:

 

Note: The Strategy Controller will be required for this, all SpecView systems come with 2 free Strategy events, so if there is one event available then use that, otherwise the Strategy Controller option will need to be purchased.

 

This example assumes the 'Exit' button will be on a screen (GDW) called 'MainScreen'.

 

1. Create a Boolean User Variable called, for example, ExitPressed (initial value 'Off').

 

2. Create a new screen (GDW) called, for example, ExitScreen and put in it the text: 'Are you sure?'

 and a button 'Yes' that has the action: SpecView: Exit Program

 and a button 'No' that has the action: GDW: Swap to another GDW: MainScreen

 

3. The 'Exit' button should have the action:

 Parameters: Download Specific Value: ExitPressed to On.

 

4. In Strategy Controller create an event:        If ExitPressed = On

 With the actions: Parameters: Download Specific Value: ExitPressed to Off

                 GDW: Swap to another GDW: ExitScreen

 

 

Note: However this will not work if using SpecView from a Remote. This is because screen swaps from the Strategy Controller are not supported on Remotes.