Re: XForms: Still unable to catch Expose event properly

Steve Lamont (
Tue, 8 Jul 97 15:51:29 PDT

To subscribers of the xforms list from (Steve Lamont) :

> > The fl_register_raw_callback() call should be
> >
> > fl_register_raw_callback(gpGlunk->form, ExposureMask,
> > ^^^^^^^^^^^^
> > (FL_RAW_CALLBACK)do_expose);
> I tried this (after I changed the do_expose function as you suggested
> below) and when I tried to run the program I got the Alert! message "In
> RawCallBack [forms.c 2054] Unsupported mask 0x8000". After this my
> program ran normally but the do_expose function was never called for any
> reason.

I think what you're going to have to do is eliminate the
fl_addto_selected_xevent() call and set the fl_register_raw_callback()
mask to FL_ALL_EVENT. Then filter in your callback function with

if ( ( ( XEvent *) xevent )->type == Expose )

I don't think you can select Expose events any other way in raw
callbacks. It's been a while since I fiddled with them. Sorry if I
led you astray but I think I may have suggested this tack earlier and
then forgot about it.


To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: