I have a grid with 200 buttons.
When you select one button I want to change the fill color to red and then when you click on another button I want the previous button to go back to transparent and the new button to go red. Is it there any easy way to do this?
The code I run today change the colors but the problem is that the button you clicked stays red until you click it again. I want this to go automatically when pressing a new button.
Onselect: UpdateContext({pressedButton:!pressedButton})
Fill: If(pressedButton=true; Color.Transparent; Color.Red)
