Hi,
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,"");
fl_end_form();
}
int
main(int argc, char *argv[])
{
int i;
char str[32];
FL_OBJECT *obj;
fl_initialize(&argc, argv, "FormDemo", 0, 0);
create_form();
for (i=0;i<50;i++) {
sprintf(str,"line no. %d",i);
fl_addto_browser(browserobj,str);
}
fl_show_form(form,FL_PLACE_CENTER,FL_TRANSIENT,"Browser Op");
do
obj = fl_do_forms();
while (obj != exitobj);
fl_hide_form(form);
return 0;
}
_________________________________________________
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 : Mon Oct 23 2000 - 02:31:14 EDT