
HOW TO HIDE AND SHOW OBJECTS
This Mini Lesson will describe using the Actions Editor to programmatically Hide or Show objects on your ToolBook pages.

SETTING THE VISIBLE PROPERTY
The key to understanding how to hide and show
objects using the Actions Editor is to realize that there are no hide and show
commands within the Actions Editor.
The Actions Editor allows you to control objects by setting various properties of the object. The Set Property action is used to do this.
To hide or show an object, you would want to set the visible property of the object to true or false .

CLICK ONCE TO SHOW, CLICK AGAIN TO
HIDE
A common need is to have a learner click a button once to show something and click the button again to hide it.
This can be done using logic similar to this.
ENSURE CERTAIN OBJECTS ARE HIDDEN/SHOWN
BEFORE LEARNER GETS TO THAT PAGE
If you have logic
in place to allow the learner to hide/show objects, it is likely you will need to ensure those
objects are properly hidden or shown before the learner navigates to those pages. The way to do this is to use the RESET behavior of ToolBook.
A Reset command is sent to each page of your book:
The Actions Editor allows you to define what behavior should occur when the Reset command is sent to the page - by adding programming logic to the On Reset action of the page.
Note that the Reset command is sent only to the Page object, not the objects on the page.

| OPENSCRIPT NOTICE The OpenScript programming examples found in many articles may need modification in order to work in ToolBook 9.0 or higher, particularly if the article was written for an older version of ToolBook. To learn more, click here. |