> For the complete documentation index, see [llms.txt](https://docs.intrepidcs.com/vspy-3-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intrepidcs.com/vspy-3-documentation/3.9.15/vehicle-spy-tutorials/tutorial-sort-messages-by-ecu/part-8-construct-a-user-dialog.md).

# Part 8 - Construct a User Dialog

Let's tie the Application Signal triggers from Part 5 to some user controls on a Graphical Panel.

### 1. Add On/Off Button Controls:

Open the Graphical Panels view using the main menu bar Measurement --> Graphical Panels. All available control and display tools are shown along the bottom of the window. Click the On/Off Button tool to select it, then click on the empty Graphical Panels window to add it to the screen. Set the following On/Off Button properties:

<table><thead><tr><th width="205">Property</th><th>Setting</th></tr></thead><tbody><tr><td>OnText</td><td>True</td></tr><tr><td>OffText</td><td>False</td></tr><tr><td>OnOffType</td><td>1-Toggle Button</td></tr><tr><td>Signal</td><td>60ECUTrigger</td></tr></tbody></table>

Feel free to play with the other properties to see what they do. Figure 1 shows one possible way of setting the other properties.

Make more On/Off Buttons for the six remaining ECUs: 10, 1A, 29, 40, 58, and 97.

![Figure 1: Example of the On/Off Button properties for one of the ECU's.](https://2396693198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlRJv2XDCMeZSU0VbeZlG%2Fuploads%2Fgit-blob-4d70b107a358a70c99e725a782b5c51a40df88d1%2FspyExample4Part8Pic1.jpeg?alt=media)

### 2. Add Status Lights:

Select the LED tool and click on an empty spot on the Graphical Panel. Select "60EcuTrigger" for the Signal. Also use the LedColor property to pick a color for the indicator light. Again, repeat for the other 6 ECUs. An example of a possible layout can be seen in Figure 2.

![Figure 2: One possible layout for the Graphical Panel.](https://2396693198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlRJv2XDCMeZSU0VbeZlG%2Fuploads%2Fgit-blob-7c24916b8569e865e5b9cb79b3b0ae3e2eb37195%2FspyExample4Part8Pic2.jpeg?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.intrepidcs.com/vspy-3-documentation/3.9.15/vehicle-spy-tutorials/tutorial-sort-messages-by-ecu/part-8-construct-a-user-dialog.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
