I have a column of 6 buttons I use to select the input media source for my receiver (please see attached Test_Deselect.hrp). Like others, I want to highlight my selected source button when clicked, leaving the other buttons in a default/deselected state. I have reviewed other approaches (e.g. [ How to efficiently change multiple buttons using one data trigger](https:// How to efficiently change multiple buttons using one data trigger)), and chose the “virtual device variable” approach.
On loading, each button is assigned a default “deselected” image. Each button also has an EventTrigger and a DataTrigger. When I click a button, the EventTrigger fires and assigns a unique “button ID” value to a variable PriActVar. The DataTrigger conditional tests for this button ID and also fires, explicitly loading a new “selected” button image.
If I click a new media source button, HR seems to automatically reset the old button image to its default/deselected state. But my buttons do NOT have a second Datatrigger to explicitly perform this “default image reset” operation.
I’m a huge fan of this HR behavior, but I can’t explain it with my limited knowledge of the triggers I’ve set up, so I’m leery of depending on it. I’m not sure if a DataTrigger has some property that invokes a default action if a conditional evaluates to FALSE. How can a button image change without an explicit action on my part?
Test_Deselect.hrp (1.5 MB)