Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!husc6!endor!kochhar From: kochhar@endor.harvard.edu (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: Text widget question (Xaw) Keywords: X11R4, Xt, Xaw Message-ID: <1228@husc6.harvard.edu> Date: 13 Jan 90 05:08:00 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@endor.harvard.edu (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 32 Is there any way to modify the translation table of a text widget (through resources) so that if I select something (e.g. a word by double clicking), and then type a character, the selection gets deleted and replaced by the character (similar to macintosh applications)? I tried the following (which doesn't work, though came close in some ways especially under R3): xedit*Text.Translations: #override \ Right: forward-character() \n\ Left: backward-character() \n\ Down: next-line() \n\ Up: previous-line() \n\ Delete: delete-previous-character() \n\ BackSpace: delete-previous-character() \n\ Linefeed: newline-and-indent() \n\ Return: newline() \n\ None : kill-selection() insert-char() \n\ (The last line None was supposed to do the trick...) Any help will be appreciated. Thanks Sandeep Kochhar (617) 495-3988 mail: kochhar@harvard.harvard.edu Harvard University kochhar@harvard.csnet 33 Oxford st, kochhar@harvard.uucp Cambridge, Ma 02138 kochhar@harvard.bitnet