Step 4. Configure a Rectangle Object to Reflect Lights On/Off

Even though the button is now animated, the screen must clearly display when the lights are on or off.

The screen designer:

  1. Inserts a rectangle object in the reservoir group.

  1. Opens the rectangle object's Properties dialog box.

  2. Enters expressions that use the variable {LIGHT} to apply color animation to the rectangle.

A

{LIGHT} EQ 1

Turns the lights on.

B

{LIGHT} EQ 0

Turns the lights off.

More information

Example 1: Create and use variables.