[comp.windows.x] User-defined events for translations

dce@smsc.sony.com (David Elliott) (01/26/91)

I have a program in which I would like to allow the user to define
translations for non-X events.  For example, I could have an XtAddInput
or XtAddWorkProc callback "post" an event, say "FileInput", and then
specify a translation for that, as in:

	<Key>!:		do_something() \n\
	<FileInput>:	do_something_else()

Is there anything in Xt for doing this?

Otherwise, I'll just define a set of resources for defining what
actions to call.