Re: XForms: Multiple form application, Which form selected?

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Thu, 12 Jun 1997 23:37:02 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

from keith tang <tang@pcpros.net> :
>With multiple forms open, Does anyone know a call such as
> form = fl_find_selected_form();
>which would identify the currently highlighted form?

I take that by highlighted form you mean the form
that has the input focus ? In that case, the answer
is no. However, you can roll your own rather easily:

FL_FORM *get_selected_form(void)
{
Window win;
int junk

XGetInputFocus(fl_get_display(), &win, &junk);
return fl_win_to_form(win);
}

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