FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   Detecting mouse clicks to particular objects.
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Detecting mouse clicks to particular objects.  (Read 1547 times)
stendahl


Detecting mouse clicks to particular objects.
« on: Oct 22nd, 2004, 11:17am »

There should be a way to name or identify a group of drawing commands and later detect clicks and other mouse events on those groups.  That is, a way to implement buttons, etc.
 
One idea would be to wrap a series of function call with a beginGroup(String)/endGroup() pair.  Then one could call getGroup(int x, int y) to get the name of the group with particular screen coordinates.
 
This is crucial for any program that wants to use GUI elements in their application.  We have a lot of people separately implementing pieces of this functionality for their first quarter projects here at Ivrea.
 
Pages: 1 

« Previous topic | Next topic »