Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 4.35 KB

File metadata and controls

15 lines (10 loc) · 4.35 KB

Graphical Panel Controls: On/Off Button

An On Off button allows you to change the value of a digital (binary) signal or application signal within a graphical panel. You can also use this control to take Vehicle Spy online or offline.

Figure 1: An On Off button, currently in the Off state.

Table 1 lists the special properties associated with On Off Button controls. A list of common properties can be found in Common Control Properties.

Table 1: On Off Button Control Properties

Property Function and Options
OnText The text shown when the button is pushed or held down (On state).
OffText The text shown by default before the button is pressed (Off state).
OnOffType

Specifies the behavior of the control:

  • 0-Push Button: Button state and signal value will change as long as the button is held down; releasing the button will return the button and signal to the Off state.
  • 1-Toggle Button: The button state and signal value toggle when the button is pressed.
  • 2-Online/Offline Button: The button emulates the behavior of the blue Vehicle Spy start/stop buttons (/). VSpy will be online when the button is down, and offline when it is up.