# Graphical Panel Controls: On/Off Button

An On Off button allows you to change the value of a digital (binary) signal or [application signal](/vspy-3-documentation/vehicle-spy-main-menus/main-menu-scripting-and-automation/application-signals.md) 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.](/files/1F3IPadOnWoVY71LOitb)

Table 1 lists the special properties associated with On Off Button controls. A list of common properties can be found in [Common Control Properties](/vspy-3-documentation/vehicle-spy-main-menus/main-menu-measurement/graphical-panels/graphical-panels-tools/graphical-panel-controls-common-control-properties.md).

**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 | <p>Specifies the behavior of the control:</p><ul><li><strong>0-Push Button:</strong> 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 <strong>Off</strong> state.</li><li><strong>1-Toggle Button:</strong> The button state and signal value toggle when the button is pressed.</li><li><strong>2-Online/Offline Button:</strong> The button emulates the behavior of the blue Vehicle Spy start/stop buttons (<img src="https://cdn.intrepidcs.net/support/VehicleSpy/assets/play.gif" alt="">/<img src="https://cdn.intrepidcs.net/support/VehicleSpy/assets/playstop.gif" alt="">). VSpy will be online when the button is down, and offline when it is up.</li></ul> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intrepidcs.com/vspy-3-documentation/vehicle-spy-main-menus/main-menu-measurement/graphical-panels/graphical-panels-tools/graphical-panel-controls-on-off-button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
