Forums > MaxMSP

Should be easy? How to make a button not light when clicked?

November 29, 2006 | 4:45 pm

Here’s what I want to do: have an LED (actually a pictctrl, or some other form of custom image) that can show 2 states, like on and off, but that does not blink or change in any when if the user happens to click on it.

An indicator light.

SOrry if this is easy, but I can’t find it!


November 29, 2006 | 4:56 pm

You could cover it with a transparent button (make sure it’s in front of the LED or pictctrl and has "highlight when clicked" turned off) that does nothing?

max v2;
#N vpatcher 14 59 290 301;
#P toggle 121 77 15 0;
#P user ubutton 120 115 18 18 0 2;
#P user led 121 115 17 17 0 150;
#P connect 2 0 0 0;
#P pop;


November 29, 2006 | 5:05 pm

YES! I had tried that but I didn’t realize that my ubutton was behind my pictctrl. Moving it to the front works, it happily eats the mouse clicks.

Thanks for the reply.


November 29, 2006 | 5:59 pm

At 9:45 AM -0700 11/29/06, Andy Smith wrote:
>Here’s what I want to do: have an LED (actually a pictctrl, or some other form of custom image) that can show 2 states, like on and off, but that does not blink or change in any when if the user happens to click on it.

Right Click on your control and select Ignore Click from the menu?

-C


Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." – Brian Eno


November 29, 2006 | 8:25 pm

Oh, got it. Never thought to look there.

Thanks!


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