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));
}
where FD_gfx *fdui; these
Display *display; are
int screen; global
GC xgc;
my struct:
typedef struct {
FL_FORM *gfx;
FL_OBJECT *viewport;
FL_OBJECT *freeobj;
void *vdata;
long ldata;
} FD_gfx;
and I assign...
display = fl_initialize (argv[0], "project", 0, 0, &argc,argv);
it simply doesn't clear my window..
_________________________________________________
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/