disabling a number box with a button

Julien Bayle's icon

I'd like to disable a number box with a button.

I guess it involves "special" messages to be sent to the box...

I cannot find which messages...

Tim Lloyd's icon

The ignoreclick message? In case you don't already know, you can drag almost any attribute from the inspector onto an object.

brendan mccloskey's icon

send the message [min 0, max 0] to number box, but it will still output bangs on input

Julien Bayle's icon

ok Tim.
I didn't know that!

thanks a lot !!

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

so, here is the thing I did.

Luke Hall's icon

You can replace the [route] and message boxes with [!- 1]. Clever idea with removing the triangle!

lh

Julien Bayle's icon

thanks Luke (about optimizing thing)
I'll replace a lot of things in my protodeck patch, with that.
I did never think about that :-O