Group panel or toggles

bluedude

Well-Known Member
Licensed User
Longtime User
Hi,

I´m looking for a way to do a kind of group button row in my UI. When selecting one button the others need to change state.

Does that all need to be done by code or can it be done in the designer.
 

klaus

Expert
Licensed User
Longtime User
Does that all need to be done by code or can it be done in the designer.
Yes, you need to do it on your own by code.
Only RadioButtons work that way.
The best way is to have one Click routine for all these buttons.
Save the current button in a variable.
That way you can unselect the current Button in the Click routine.
And set with the Sender object the new current Button and select it.

I have used this in the Fast Fourier Demo Program.

Best regards.
 
Last edited:
Upvote 0
Top