Re: XForms: Setting a keyboard state (ex: caps lock/num lock)

From: Nicolas CASTAGNE (nicolas.castagne@imag.fr)
Date: Thu Mar 20 2003 - 16:17:56 EST

  • Next message: Serge B Bromow: "Re: XForms: Setting a keyboard state (ex: caps lock/num lock)"

    # To subscribers of the xforms list from Nicolas CASTAGNE <nicolas.castagne@imag.fr> :

    Have a look on the macros
    metakey_down(mask), shiftkeydown(mask), etc.
    in the forms.h header file.

    To get the current mask, you may need to call
    fl_get_win_mouse()
    or
    fl_get_mouse()

    Wish it will bee enough !

    NC

    Le jeudi 20 mars 2003, à 09:03 , ddembrow@nlxcorp.com a écrit :

    > # To subscribers of the xforms list from ddembrow@nlxcorp.com :
    >
    > Does xforms provide a routine to set the state of a keyboard key, or
    > do I
    > need to resort to xlib?
    >
    > I would like to check the state of the caps lock and num lock keys, set
    > them both on upon application initialization, and restore the state
    > prior
    > to application initialization upon exit.
    >
    > Thanks,
    > ---d.dembrow
    >
    > NLX Corporation
    > Phone: (703) 234-2100 FAX: (703) 234-2101 email:
    > ddembrow@nlxcorp.com
    >
    > _________________________________________________
    > 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/
    >
    >
    ------------------------------------------------------------------------------------
    Nicolas CASTAGNE
    Ingénieur de recherche ACROE / ICA
    Association pour la Création et la Recherche sur les Outils d'Expression
    Laboratoire Informatique et Création Artistique (INPG / UJF)

    46 av. Félix Viallet, 38 000 Grenoble
    04 76 57 46 60

    Ingénieur ECP / docteur en Informatique de l'INPG
    ------------------------------------------------------------------------------------

    _________________________________________________
    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 Mar 20 2003 - 16:20:31 EST