Forums > MaxMSP

Here's a little patch for implementing horizontal radio buttons


November 22, 2009 | 4:18 am

Hi folks,

In case you find this useful, here’s a little utility patch I made to solve a problem I had earlier today. It implements a set of horizontal radio buttons. Should be pretty self explanatory, I’m a Max newbie, so advanced it ain’t, but for other newbies it may be helpful.

You can set the buttons by sending a list to the input, or clicking on them directly when the patch is locked.

Docs are the comments.

Cheers,

Eddy

— Pasted Max Patch, click to expand. —
November 22, 2009 | 10:43 am

I had found that :

— Pasted Max Patch, click to expand. —
November 22, 2009 | 11:01 am

If you don’t need the text on the buttons you can always use the "one active cell per row" feature of [matrixctrl].

lh

— Pasted Max Patch, click to expand. —
November 22, 2009 | 1:03 pm

Great info chaps,

Thank you – that’s extremely useful.

Eddy

November 22, 2009 | 1:36 pm

And with this message to an lcd:

size 38 19, bgtransparent 1, clear, frameoval 4 4 15 15, frameoval 23 4 34 15, paintoval 25 6 32 13, writepict

you could easily construct a custom cell image for matrixctrl.

November 22, 2009 | 6:18 pm
jvkr wrote on Sun, 22 November 2009 13:36
And with this message to an lcd:

size 38 19, bgtransparent 1, clear, frameoval 4 4 15 15, frameoval 23 4 34 15, paintoval 25 6 32 13, writepict

you could easily construct a custom cell image for matrixctrl.

Excellent tip – thank you.

Eddy

March 3, 2012 | 4:00 pm

I needed a group of radio buttons as well — I came up with the following, which I think is simpler than previous examples

— Pasted Max Patch, click to expand. —
Viewing 7 posts - 1 through 7 (of 7 total)

Forums > MaxMSP