Re: XForms: Thanks, Question?

From: Steve Lamont (spl@szechuan.ucsd.edu)
Date: Sun Feb 27 2000 - 17:09:12 EST

  • Next message: Thomas Vosegaard: "Re: XForms: Formbrowser"

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

    > I need a mechanism that indicates to me which
    > object the cursor is placed over. I tried the
    > fl_get _focus, but after testing, realized that this
    > call if for use with input objects only.

    You can use the `belowmouse' member of the `FL_OBJECT' structure.

    For instance:

            FL_OBJECT *fl_get_object_under_mouse( FL_FORM *form )

            {

                FL_OBJECT *obj;

                for ( obj = fd_try->try->first;
                      obj;
                      obj = obj->next )
                    if ( obj->belowmouse )
                        break;

                return obj;

            }

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



    This archive was generated by hypermail 2b29 : Sun Feb 27 2000 - 17:14:57 EST