Tutorial 11

Working with subdialogues.

Instructions
Drag and arrange states onto the canvas so that you have the following setup. Please note the special instructions for the subdialogue below. It does not drag-and-drop in the same manner as any of the other objects.

Subdialogues are like mini-RAD canvases. You can build structures of states within them to keep the main canvas neat, as well as encapsulating common tasks in an easily duplicated state.


When you drop the subdialogue object on the canvas, a menu will appear. Select "New Master Subdialogue" from the menu. This will create a new, empty subdialogue.


Double click on "login_subdialogue" to open the subdialogue. This will raise another canvas, which represents the contents of the subdialogue. Drag and arrange states onto the subdialogue so that you have the following.


The prompt for signin should be "Please sign in."
Add a list of names to the login state, and then close the subdialogue by selecting the "X" in the top right corner of the subdialogue window.

The prompt for "congrats" should be:
"Hello $user, you can load this subdialogue to take advantage of the login object."

When you run the program, watch the dialogue flow, and you will see that there are several states encapsulated within the subdialogue. It is possible to create and save individual subdialoges so that they can be re-used in other applications.
To save a subdialogue, right click on it and select "Save Subdialogue Object". The saved object can then be inserted into other applications by right clicking on the canvas, and selection "Insert File".