Re: XForms: clearing the window once again

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 30 Jan 98 08:26:33 PST

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

> 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/