We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › controlP5 deactivating button(s)
Page Index Toggle Pages: 1
controlP5 deactivating button(s) (Read 1012 times)
controlP5 deactivating button(s)
May 9th, 2010, 11:29pm
 
Hi there.

I've got 2 buttons, A and B. When I press A button I can use "isVisible(false)" to make button B not visible, but I don't want to hide the controller... just to make it inactive. Any idea how I can do it...? I'm a beginner with programming, so please try to explain it easy or give me an easy hint if you could.

I tried "isActive()" / "setActive" from "ControlBehavior" class... but without sucess, I just got error. Any idea(s)...??



Mike
Re: controlP5 deactivating button(s)
Reply #1 - May 14th, 2010, 9:52am
 
oh well...

I will just add setVisible(false) to the button A
and create another button B (same look) with no behavior...
stupid, but that to do.
Page Index Toggle Pages: 1