Here's a little patch for implementing horizontal radio buttons

Eddy's icon

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

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

moze's icon

I had found that :

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

Luke Hall's icon

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

lh

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

Eddy's icon

Great info chaps,

Thank you - that's extremely useful.

Eddy

jvkr's icon

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.

Eddy's icon

jvkr wrote on Sun, 22 November 2009 13:36And 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

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

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