XForms: I which to registrer a complaint...

Dick Middleton (dick@sqf.hp.com)
Wed, 8 Oct 1997 08:44:22 +0100

To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

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

> > This behaviour also causes `BadDrawable' in the following scenario:
> > An application handles a main form and a transient form.
> > The trancient form is composed of a canvas and a menu button.
> > The canvas has registered to receive `Expose' events.
> > One of the menu call backs causes a `fl_hide_form' on the trancient
> > form when the `Hide' item is selected. However, when the `Hide' item
> > is selected an `Expose' event is generated, but `fl_hide_form' is
> > executed before the event is received. The `Expose' handler then
> > receives the event, draws in the killed canvas window and causes a
> > `BadDrawable' error event.

This caused me alot of grief too. My workaround was to put an
fl_form_is_visible test in my expose handlers before calling any draw
routines. It seems to work.

Dick

--

dick@sqf.hp.com

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