XForms: Problem with browsers

From: Ravi Mehrotra (ravi@csnpl.ren.nic.in)
Date: Mon Oct 23 2000 - 02:22:17 EDT

  • Next message: Steve Lamont: "Re: XForms: Problem with browsers"


    I append sample code (hacked from browserop.c from DEMOS) below for a
    problem with browsers. Compile and run the program. The browser responds
    strangely when any arrow key is pressed (UP, DOWN, RIGHT, or LEFT). The
    whole text inside the browser gets shifted to the right.

    I am using XForms 0.89 on linux machines (Pentium II and Pentium III)
    kernel 2.2.6 and kernel 2.2.16.

    I will appreciate any help in solving this annoying problem.

    Ravi Mehrotra
    National Physical Laboratory
    New Delhi

    -----------------------------------sample code

    #include "forms.h"
    FL_FORM *form;
    FL_OBJECT *browserobj, *exitobj;
    void create_form(void)
       FL_OBJECT *obj;
       form = fl_bgn_form(FL_UP_BOX,390,420);
       browserobj = fl_add_browser(FL_HOLD_BROWSER,20,20,210,330,"");
    main(int argc, char *argv[])
       int i;
       char str[32];
       FL_OBJECT *obj;
       fl_initialize(&argc, argv, "FormDemo", 0, 0);
       for (i=0;i<50;i++) {
          sprintf(str,"line no. %d",i);
       fl_show_form(form,FL_PLACE_CENTER,FL_TRANSIENT,"Browser Op");
          obj = fl_do_forms();
       while (obj != exitobj);
       return 0;

    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/

    This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 02:31:14 EDT