Re: XForms: XClearWindow and canvas object

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 8 Jan 98 09:19:28 PST

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

> i want to clear a canvas window but XClearWindow doesnt seem
> to have any effect.
> mydisplay= fl_get_display();
> mywindow= FL_ObjWin(myform->canvas);
> and later:
> if(ev->xexpose.count==0)
> XClearWindow(mydisplay, mywindow);
> can anyone help me?

Have you set a background pixel or pixmap? If you haven't then the
call is ignored. Refer to the manual page for XClearWindow() or
XClearArea() for further details.

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/