> # To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :
>
>
> How could I get the mouse to return the x and y values when the mouse
> button is pressed, and again when it is released. I am trying to get mouse
> interaction with a line algorithm. I want the user to be able to draw a
> line with the mouse, simply by dragging the mouse.
>
Use fl_add_canvas_handler() to register callbacks for ButtonPress,
ButtonRelease, and possibly MotionNotify events.
-- Steve
-- -- EMail: stephen.langer@nist.gov Phone: (301) 975-5423 -- -- WWW: http://math.nist.gov/mcsd/Staff/SLanger/ Fax: (301) 990-4127 -- -- Mail: Building 820 Room 365; NIST; Gaithersburg, Md 20899-0001 -- _________________________________________________ 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://bloch.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/