Re: XForms: Need help with event callback

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 1 Jul 97 16:04:41 PDT

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

> First of all, what I needed was for a certain routine to be called
> whenever a form was brought forward (first time it was displayed, whenever
> the user clicked on a corner to bring it to the top, etc). There are
> several forms which may be active at any given time.
> [...]
> FD_form *pForm;
> fl_initialize(.....
> pForm = create_form_form();
> fl_show_form(pForm->MyForm, .....
> fl_addto_selected_xevent(FL_ObjWin(pForm->btnButton), ExposureMask);
> fl_add_event_callback(FL_ObjWin(pForm->btnButton), Expose,
> (FL_APPEVENT_CB)do_expose, 0);

Try using fl_register_raw_callback(). See Appendix C of the manual
for the gory details.

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/