Re: XForms: Shortcut doubt

From: Steve Lamont (spl@ncmir.ucsd.edu)
Date: Thu Jul 06 2000 - 09:35:29 EDT

  • Next message: Fabiano Durao Lanini: "Re: XForms: Installing Xforms"

    # To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :

    > I need to use same shortcut key "a" to two buttons. How can i
    > do this one. Any one reply .

    You can't, as far as I can tell -- at least in the sense that you
    can't call more than one callback from a shortcut. As you've probably
    already discovered, if you define objects `a', `b', and `c', in that
    order, only the callback for the first object defined, in this case
    `a', is called and the others are ignored.

    I don't think there's any way to detect whether an object's callback
    is called from a shortcut, either.

    The best thing I can think of is to use a hidden button with a
    shortcut and have it call the callbacks of the objects you wish to
    group in this manner.

                                                            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 : Thu Jul 06 2000 - 09:42:44 EDT