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.
JavaProject Sets the name of a Java project to access, when the button is tied to a Java project.
StartJava Specifies when to run a Java project:
  • 0-On Down Click: Run Java project when button is pressed down.
  • 1-On Down and Up Click: Run when button is clicked.

  Spy Documentation - (C) Copyright 1997-2022 Intrepid Control Systems, Inc.