Re: v0.86 and graphics expose

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Sat, 12 Apr 1997 00:45:56 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

From: "J. P. Mellor" <jpmellor@ai.mit.edu>

>seems to be a problem with canvases and graphics exposes.
>These events cause fl_do_forms() to return. Also setting a canvas
>handler for GraphicsExpose doesn't help.

> if (xev->xbutton.button == Button1) {
> display = fl_get_display();
> printf("Button 1\n");
> XCopyArea(display, win, save, DefaultGC(display, DefaultScreen(display)),
> 0, 0, mark_width, mark_height, 0, 0);
> }
When you copy the window to the pixmap, the GraphicsExpose
event is generated for the pixmap, not the canvas window.
Thus setting a handler for the canvas has no effect and
fl_do_forms returning FL_EVENT is the correct behavior.

You can either turn off graphicsexpose event reporting
in the GC or handle this event as any other application
window evevt via FL_EVENT, fl_add_event_callback,
or fl_set_event_callback.
_________________________________________________
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://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/