# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
> ... Now the interaction with my canvas works
> pretty well. But I dont know why I cant dram lines over it. For instance,
> in the previous version of xforms I use :
> fl_rect(mx-4,my-4,4,4,30) to draw a square arount the point of coordinates
> mx, my. Now the drawing doesnt appear.
The fl_* drawing routines are generally designed to work in "proper"
XForms Objects, rather than Canvas objects, and have a notion of a
"current window." This is maintained internally XForms.
You can set the "current window" by using the fl_winset() function.
You may also need to fiddle with the GC (graphics context) in order to
match it to your Canvas, in particular if the Canvas has a different
depth than the Form on which it resides.
Refer to the manual for proper usage.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Sat Apr 08 2000 - 18:19:33 EDT