Re: XForms: XEvent question ( I think?)

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 12 Nov 97 10:29:23 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Let's say that I have a form with an arbitrary number of xyplots. If I wanted
> to detect a mouse click and determine which xyplot was clicked on, would I use:
>
> fl_add_event callback()
>
> and then try to determine which xyplot was clicked on by getting the mouse
> coordinates and use logic to make the determination?
>
> Or, is there some way to determine which xyplot on the form was clicked on and
> then act?

You might try a pre or post handler, which should hand you the object.

fl_win_to_form() will also hand you the FL_FORM struct.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/