Re: XForms: KeyCodes in XForms

Orn E. Hansen (oe.hansen@oehansen.pp.se)
Wed, 10 Sep 1997 19:25:37 +0200 (CET DST)

To subscribers of the xforms list from "Orn E. Hansen" <oe.hansen@oehansen.pp.se> :

=DEann 09-Sep-97 Frank Stefani skrifar:
>=20
> In your main() ore more precisely before fl_do_forms, try:
>=20
> fl_register_raw_callback(fd_my_frm->my_frm, KeyPressMask, xevhandler)=
;=20
>=20
> and create the appropriate XEvent handler function:
>=20
> int xevhandler(FL_FORM *form, void *xev)
> {
> } /* switch xev-type */
> } /* xevhandler */
>=20

The problem with this solution, is that it isn't really portable betwee=
n
platforms. As on some platforms, the problem doesn't exist, while on
others (like Linux) the problem is really bad.

What is neater, is the identity of the basic X widget class that handle=
s
the basic key functions (Athena widgets, or others), so that the translat=
ion
table within this widget can be changed. As the problem isn't really wit=
h
XForms (unless it determinantly deletes the correct translations :-), but
with the underlying X widget class, that isn't performing its function.

-------------------------------------------------------------------------=

---
Orn Einar Hansen                         oe.hansen@oehansen.pp.se
                                          oehansen@daimi.aau.dk
                                        voice+fax; +46 035 217194
_________________________________________________
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/