Re: XForms: form with input object cratering app

From: Angus Leeming (angus.leeming@btopenworld.com)
Date: Sun Apr 13 2003 - 16:19:58 EDT

  • Next message: Angus Leeming: "Re: XForms: xforms.man question"

    # To subscribers of the xforms list from Angus Leeming <angus.leeming@btopenworld.com> :

    On Sunday 13 April 2003 5:25 pm, Jeff Pierce wrote:
    > It seems that the fl_hide_form is trying to ASSUME what I want to do and
    > is forcing what that on my code.
    >
    > Shouldn't this be considered a bug?

    The relevant code snippet from fl_hide_form is probably this

        if (form->focusobj != NULL)
        {
            obj = form->focusobj;
            fl_handle_object(form->focusobj, FL_UNFOCUS, 0, 0, 0, 0);
            fl_handle_object(obj, FL_FOCUS, 0, 0, 0, 0);
        }

    fl_handle_object puts obj on a stack of objects whose callback is to be
    invoked. So...

    does it help if you set form->focusobj = 0 before you invoke fl_hide_form?

    Angus

    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/
    Development: http://savannah.nongnu.org/files/?group=xforms



    This archive was generated by hypermail 2b29 : Sun Apr 13 2003 - 15:16:42 EDT