Forums > MaxMSP

When one box checked, the other two become unchecked.

August 24, 2011 | 6:34 am

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.


August 24, 2011 | 7:35 am

I think that’s a simple solution:

– Pasted Max Patch, click to expand. –

August 24, 2011 | 7:39 am

you could try this:

– Pasted Max Patch, click to expand. –

August 24, 2011 | 7:41 am

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


August 24, 2011 | 7:48 am

or like this for output:

– Pasted Max Patch, click to expand. –

August 24, 2011 | 10:30 am

Thank you so much.


August 24, 2011 | 2:33 pm

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.


November 4, 2011 | 6:51 pm

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. –

Viewing 8 posts - 1 through 8 (of 8 total)