Re: XForms: Need help with event callback

Steve Lamont (
Tue, 1 Jul 97 16:04:41 PDT

To subscribers of the xforms list from (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.

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