I have about twenty buttons numbered as 1 to 20 as their tags, on a panel.
I want the button that I press to be a pressed button and that its colour go to that of a pressed button, and I want to release all the other buttons, or at least the last one pressed, to be not pressed and return to its unpressed colour.
I can pick up the pressed button from the tag of the sender and I can remember that tag and the tag of the last button pressed.
When I press a button it goes to the pressed colour, but return to its unpressed colour as soon as I release the touch on that button.
How can I keep only one button pressed with its pressed colour.
I am used to VB6 where there are pressed buttons in an icon group and they become automatically unpressed when another icon is pressed.
Thanks
PK