Re: XForms: clearing and refreshing the canvas

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 28 Jan 98 11:44:56 PST

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

> how do I refresh and clear the canvas if it has some lines or shapes on
> it?

This will depend on what API you're using for your graphics. If you're using
raw Xlib, use XClearWindow():

XClearWindow( fl_get_display(), FL_ObjWin( my_canvas ) );

If you're using some other graphics API such as OpenGL, consult your
manual.

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/