When one box checked, the other two become unchecked.

Cheng Chien-Wen's icon

Hi,
I want to make a simple patch within which there are three toggle objects. I would like to know the smart way to check one of them and make the other two unchecked automatically, just like the solo and mute control that appear in regular music software. Any idea ?

Thanks.

django's icon

I think that's a simple solution:

Max Patch
Copy patch and select New From Clipboard in Max.

Timo Rozendal's icon
Max Patch
Copy patch and select New From Clipboard in Max.

you could try this:

Timo Rozendal's icon

neat one django, issue is only that the toggles wont output their 0 value, they only display it

django's icon

or like this for output:

Max Patch
Copy patch and select New From Clipboard in Max.

Cheng Chien-Wen's icon

Thank you so much.

Christopher Dobrian's icon

Take a look at the radiogroup object.

I don't know if you care, but a set of mutually exclusive toggle objects looks more like "checkboxes", which would flout the "Mac OS X Human Interface Guidelines". Here are a couple of quotes:

A group of radio buttons displays a set of mutually exclusive, but related, choices.

Use checkboxes, instead of radio buttons, to display a set of choices from which the user can choose more than one at the same time.

Basvlk's icon

the 'solo' object in the toolbox section is a neat solution too. I had a play with it and made something supersimple. Take the below code and save it as an abstraction. then do something like the 2nd patch pasted here. What do you think?

Max Patch
Copy patch and select New From Clipboard in Max.
Max Patch
Copy patch and select New From Clipboard in Max.

i agree they should be radio buttons btw!