09-18-2006 11:51 AM
09-18-2006 12:00 PM
Just create a "mouse down" event for the picture and read the coordinates.
From the coordinates you could then determine the target area (e.g. index into a 2D array lookup table etc.)
09-18-2006 12:02 PM
If you're using a Mouse Down event for the picture (assuming you use a picture control), then on the left side of the event structures you should have some terminals providing event data. One of these is Coords which returns the coordinates of the click which you can use to determine which part was clicked on.
Note that the coords are VI coords, so you will have to use a property node for the control to get its position on the FP and substract that from the coords. You can do the same if you have a decoration, but to get a reference to it, you will have to go through the front panel and getting a reference to a control is easier.