Here's a little patch for implementing horizontal radio buttons

Nov 22, 2009 at 4:18am

Here's a little patch for implementing horizontal radio buttons

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. –
#46572
Nov 22, 2009 at 10:43am

I had found that :

– Pasted Max Patch, click to expand. –
#167565
Nov 22, 2009 at 11:01am

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. –
#167566
Nov 22, 2009 at 1:03pm

Great info chaps,

Thank you – that’s extremely useful.

Eddy

#167567
Nov 22, 2009 at 1:36pm

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.

#167568
Nov 22, 2009 at 6:18pm
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

#167569
Mar 3, 2012 at 4:00pm

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

You must be logged in to reply to this topic.