> The following are called just before the show_form 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);
> This is my callback function. Should it have been defined as returning
> type FL_RAW_CALLBACK? I had to cast it to get rid of the warning from the
> fl_register_raw_callback call.
>
> 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;
Why TC chose to pass this as a void, I'm not certain...
spl
_________________________________________________
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/