Re: XForms: drawing on my canvas with the mouse

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 13 Feb 98 10:20:50 PST

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

> would I make these function calls before I fl_do_forms()? Or just in the
> callback where I need canvas interaction?

Before you call fl_do_forms().

> ButtonPress..., is that to determine which button will do what? Ie: left,
> mid, right (for 1,2,3 respectively?)

All three buttons. You can discriminate between buttons by looking at
the innards of the XEvent.

> I have no experience in those handlers.. any demo programs with similar
> handlers?

Refer to the manual for a (brief) discussion of use of handlers. It's
really pretty straightforward.

The XForms manual is your friend. The Xlib man pages are your good
buddies. Get to know them and they will help you immensely.

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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/