Forums > MaxMSP

best practice for adding clickability to non-clickable objects?

March 17, 2012 | 11:17 pm

Sometimes I want to be able to click an object that is not usually clickable – e.g. a panel.

One way I’ve thought about doing this is placing a clickable object like a button on top of the panel, but making the button transparent. Then when I click the panel, the invisible button will send a bang.

Does anyone have any better ideas?


March 17, 2012 | 11:24 pm

there’s an object made especially for that, its called "ubutton"
it has a few more parameters to choose from (position of click, mouse up, mouse down, etc)


March 17, 2012 | 11:28 pm

nice, thanks Ploki :)


March 18, 2012 | 1:13 am

In max 5 an up there’s also [hover], so you could scripting-name various objects (though not all will work with [hover] as I recall) and sense when the mouse is over them. Then you can use [mousestate] to sense the click. Might be helpful too, and you have the advantage of getting a message before the click, if you want that.


March 18, 2012 | 2:41 am

[ubutton] works fine in the foreground, [lcd] can do the same and more and works when behind the visible object.

-110


March 19, 2012 | 6:58 am

what do you mean by ‘non-clickable’ ? could you post an example ?


March 19, 2012 | 10:35 am

what do you mean by ‘non-clickable’ ?

it’s an object that does not produce any output or change its state in any way when the patcher is locked; ie cellblock, button etc are ‘clickable’, because they respond to a mouse click in some way.


March 19, 2012 | 11:01 am

Yes Terry, that’s exactly what I meant by ‘non-clickable’.

Thanks for the other suggestions too.


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