🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23696

Re: override translations for athena textwidget

#23696
From: Donna Converse
Date: Thu, 13 Jun 1991 20:08
19 lines
1252 bytes
> 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
Technical Details
Message-ID: <9106132008.AA11095@excess.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines
References: <giese.676737887@sylt>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines
From: converse@expo.lcs.mit.EDU (Donna Converse)
Newsgroups: comp.windows.x
Subject: Re: override translations for athena textwidget
Message-ID: <9106132008.AA11095@excess.lcs.mit.edu>
Date: 13 Jun 91 20:08:07 GMT
References: <giese.676737887@sylt>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: X Consortium, MIT Laboratory for Computer Science
Lines: 19