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

Dr. T.C. Zhao (
Thu, 12 Jun 1997 23:37:02 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <> :

from keith tang <> :
>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 or see
Xforms Home Page:
List Archive: