Re: XForms: some anomalies with input

From: Dario Abatianni (eisfuchs@tigress.com)
Date: Wed Dec 06 2000 - 14:18:25 EST

  • Next message: j.w.c.a. lokin: "XForms: tooltips for menu/choice/popup items"

    # To subscribers of the xforms list from Dario Abatianni <eisfuchs@tigress.com> :

    Am Mittwoch, 6. Dezember 2000 19:05 schriebst du:

    > 2) In the File-Save As Dialog: When I set the cursor in the middle of the
    > filename and press the "Entf"-Key (I think it's called "Del" on english
    > keyboard layouts) the character on the left side of the cursor is deleted
    > instead of the right side

    The xforms input gadgets seem to suffer the old and much hated UNIX problem
    that the DEL key is mapped to backward delete. You must create a new keymap
    for xforms to cure this:

    ------------------------8<----------------------

      FL_EditKeymap keymap;

      memset(&keymap,0,sizeof(keymap)); /* Cleanup keymap table */

      keymap.del_prev_char=8; /* Backward delete is Backspqce (<-) */
      keymap.del_next_char=127; /* Forward delete is DEL */

      fl_set_input_editkeymap(&keymap);

      fl_initialize(&argc,argv,"myXformsProgram",0,0);

    ------------------------8<----------------------

    Hope this helps.

    -- 
    Eisfuchs
    _________________________________________________
    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 : Wed Dec 06 2000 - 14:28:57 EST