When one box checked, the other two become unchecked.

Aug 24, 2011 at 6:34am

When one box checked, the other two become unchecked.

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.

#58600
Aug 24, 2011 at 7:35am

I think that’s a simple solution:

– Pasted Max Patch, click to expand. –
#210654
Aug 24, 2011 at 7:39am

you could try this:

– Pasted Max Patch, click to expand. –
#210655
Aug 24, 2011 at 7:41am

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

#210656
Aug 24, 2011 at 7:48am

or like this for output:

– Pasted Max Patch, click to expand. –
#210657
Aug 24, 2011 at 10:30am

Thank you so much.

#210658
Aug 24, 2011 at 2:33pm

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.

#210659
Nov 4, 2011 at 6:51pm

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?

i agree they should be radio buttons btw!

– Pasted Max Patch, click to expand. –
– Pasted Max Patch, click to expand. –
#210660

You must be logged in to reply to this topic.