Buttons - Overview

The Button functions allow you to use a script to assess the state of a Button object in your publication, in particular the state of a push button. For example, a push button can either be Up or Down, you can either use the GetState function to find out the current state of a button or use the SetState function to make the push button Up or Down. Once you have used these functions, you can use Graphical Object functions, such as, the Show function to have other objects on a page do something depending on the state of the specified push button.

Hierarchy:

As well as the specific functions listed under the Functions: heading below, you can also use the following OpusScript functions:

image\Script_Button.jpgGraphical Object functions

image\Script_Button.jpgBasic Object functions

Class Hierarchy:

Buttons

image\Hierarchy_Level.jpg Graphical Objects

 image\Hierarchy_Level.jpg Basic Objects

Hierarchy of objects in Opus

Functions:

GetState

Returns the current state of a push button

SetState

Sets the current state of a push button

GetTextObject

Returns the text object that exists inside the button.