Table of Contents

IndicatorButton

com.ergotech.vib.graphics.IndicatorButton

Image Examples

IndicatorButton in the graphics palette IndicatorButton graphic example
IndicatorButton in the graphics palette. IndicatorButton graphic example.

Overview

The IndicatorButton graphic is a More Layout button control that combines a button with a two-part indicator display.

The upper part of the graphic displays static text, and the lower part displays a boolean-style on/off state. The lower section changes label and color based on the current state.

IndicatorButton is used when an application needs both a clickable control and a clear visual status display in the same graphic.

Common Uses

Input Behavior

IndicatorButton accepts a numeric input through updateDisplayedValue.

The input value is displayed as a boolean state in the lower part of the graphic.

Any non-zero input is treated as on, and zero is treated as off.

Output Behavior

IndicatorButton sends its output through PrimaryOutPort.

When the user interacts with the IndicatorButton, it sends the current button state as the output value.

IndicatorButton-Specific Behavior

IndicatorButton combines indicator-style display behavior with button-style control behavior.

The upper part of the graphic displays text, and the lower part displays the on/off state.

IndicatorButton-specific settings include:

Logic Ports

In the Logic Editor, IndicatorButton includes these default ports:

The PrimaryOutPort sends the current output value.

The updateDisplayedValue port updates the displayed on/off state.

Notes

Use IndicatorButton when a control needs both an interactive output and a clear built-in on/off indicator.

For a simpler button-style control, see Button.

For general graphic behavior, see Active Graphic.