Browser Keystrokes

Dick Middleton (dick@sqf.hp.com)
Wed, 9 Apr 1997 11:55:28 +0100

To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

I want to receive keyboard events from a browser object (to use to index into
an alphabetic list). I'm having a little difficulty understanding what I
have to do to make the browser handle these events. Has anybody got an
example of something similar that I can copy?

Related to this I was trying to modify the browser object as in section 21 of
the manual where it talks about fl_add_NEW. If I try the example there I
find the program crashes. I think this is because the parent and child
pointers are not set in the object as they are normally.

Is the following reasonable?....

FL_OBJECT *fl_add_mybrowser(int type, FL_Coord x, FL_Coord y, FL_Coord w,
FL_Coord h, const char *label) {

FL_OBJECT *ob;
ob = fl_create_browser(type, x, y, w, h, label);
ob->input = 1;
fl_add_object(fl_current_form, ob);
return ob;
}

.... it sure doesn't work too well!!

Dick

-------------------------- European Customer Support --------------------------
_
Dick Middleton / / Communications Measurement
HP Telnet: 313-2530 / /__ ______ Division
Phone: +44 131-331 7530 / __ / / ___ / South Queensferry
Fax: +44 131-331 7443 / / / / / /__/ / Scotland UK
email: dick@sqf.hp.com /_/ /_/ / _____/
/ / ( )
( ) /_/ ( )
( ) _______ ( )
( ) | . ~ ~ ~ ~~ .
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )-------------------------------------
- I'd rather be soaring
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/