[comp.windows.x] override translations for athena textwidget

giese@sylt.informatik.uni-kl.de (Peter Giese - PA Sutter) (06/12/91)

How can I override the default translation bindings for the athena text widget?
Especially: 
What C-Code is needed to override the default binding for Ctrl-R?
I don`t need the Search-function.

Please respond per E-mail to giese@rhein.informatik.uni-kl.de

converse@expo.lcs.mit.EDU (Donna Converse) (06/14/91)

> How can I override the default translation bindings for the athena text widget?
> Especially: 
> What C-Code is needed to override the default binding for Ctrl-R?
> I don`t need the Search-function.

The application class defaults file for xmh does this for some of the 
text fields in popup dialog boxes, so you could look there for an example.

The Athena Text widget provides an action routine that optionally rings
the bell, or just does nothing, which you can use to remove unwanted
default translations.  Or you can provide some other default action for
Ctrl-R.

For example:

*Dialog.Text.Translations: #override\n\
	Ctrl<Key>R:	no-op(RingBell)\n\
	Ctrl<Key>S:	no-op(RingBell)\n