Re: XForms: Still unable to catch Expose event properly

Francine Taylor (crystalx@teleport.com)
Tue, 8 Jul 1997 14:40:14 -0700 (PDT)

To subscribers of the xforms list from Francine Taylor <crystalx@teleport.com> :

Thanks for the help, Steve :)

> > The following are called just before the fl_do_forms call in the main
> > program.
> >
> > fl_addto_selected_xevent(FL_ObjWin(gpGlunk->button1, ExposureMask);
> > fl_register_raw_callback(gpGlunk->form, Expose,
> > (FL_RAW_CALLBACK)do_expose);
>
> 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.

> > int do_expose(XEvent *ppXEvent, void **ppParm2)
>
> The parameter list here is wrong. It should be
>
> int do_expose( FL_FORM *form, void *xevent )
>
> You can then cast xevent into
>
> XEvent *event = ( XEvent *) xevent;

I did this and now the value of the event type and the expose type are
always 4 (instead of 50304 - that's definately progress :). It also still
refuses to process the other callbacks normally even though I'm still
returning 0 from the function.

_\||/_
/ ^ ^ \
Francine Taylor (\| (o)(o) |/) crystalx@teleport.com
-------------------------OOOo--oo--oOOO------------------------------

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