XForms: drawing on my canvas with the mouse

AMIT BHATNAGAR (amit@cs.dal.ca)
Thu, 12 Feb 1998 14:58:45 -0400 (AST)

# 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.

I need it to send down the starting x & y's , and the finishing x & y's to
my line algo (which accepts 4 ints..)

help me please.. I simply cannot figure this out.

_________________________________________________
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/