Toggle group
Probably a very simple case for most of you. I'm trying to make a group of toggle buttons that interacts with each other. When one button is activated, an "ignoreclick = 1" command should be sent out to the rest of the buttons to disable these. And then it should enable all clicks again when hitting the "active" button one more time. The thing is that now everything, even the button that is clicked, are disabled, which kind of stops the process:-). Is there a smart solution on this one?
Here is the dirty -
Depending on what you want to do with these toggles, there are other ways to make exclusive selection, such as:
design the patch in a way which always forces a default state after initialisation, where exactly one button is selected and the others are disabled.
then the chain of "always from such a state to the same state" is linked.
you can build that default state initialisation right into the control logic of the GUI stuff, because you will never need other button states.
the second trick is to simply send the "off" commands to everything, and then turn the clicked one on again. in bigger systems, this will save you hundreds of connections.
if the correct order is obeyed, this is a safe thing, and you should also not see any graphics glitch from doing so.
any selection of the toggles will trigger:
1. set all toggles to 0
2. make all toggles disabled
3. set itself to 1 again
4. make itself enabled again

ah, error, you probably dont want step 3.
you want it to go in locked state, too (and then you could edit the "disabled/on" part of the picture file likewise)
Thanks for your inputs. Very helpful