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 image as a button
Page Index Toggle Pages: 1
controlP5 image as a button (Read 460 times)
controlP5 image as a button
Jul 14th, 2008, 2:39pm
 
hello,
i have a few buttons that are named like "button1", button2"etc. beside every button is a small image. when testing my applet i got the idea, that it might be better to use the image as a button. as people intend to click on the image rather than on a small button. is there a way to put the button script on the image?
so that by clicking on the image the function of the button is executed?

thanks so far!
Re: controlP5 image as a button
Reply #1 - Jul 14th, 2008, 4:21pm
 
yes it's possible to extend controlp5 (latest version), see:

http://bezier.de/processing/cp5/cp5ImageButton3.zip

F
Page Index Toggle Pages: 1