> can anyone see anything wrong with this?
>
> void
> clear(FL_OBJECT *test, long x)
> {
> printf ("In the clear callback\n");
> XSetBackground (display, xgc, WhitePixel (display, screen));
> XClearWindow(display, fl_get_canvas_id(fdui->viewport));
> }
>
> [...]
>
> it simply doesn't clear my window..
Did you set the *Window's* background pixel or its background pixmap?
If you didn't XClearWindow() won't do anything.
Use XSetWindowBackground() or XSetWindowBackgroundPixmap() to
accomplish this? XSetBackground() only sets the drawing background,
not the Window background.
Did you read my previous reply?
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/