Path: utzoo!attcan!uunet!samsung!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!ico!attc!marbru From: marbru@attc.UUCP (Martin Brunecky) Newsgroups: comp.windows.x.motif Subject: Re: Easy way to change translations for all text widgets in an app? Message-ID: <1210@attc.UUCP> Date: 2 Mar 91 19:23:16 GMT References: <1991Feb27.155939.22542@ncsu.edu> Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 30 In article <1991Feb27.155939.22542@ncsu.edu> sam@gyro.cc.ncsu.edu (Sam Moore) writes: >I would like to add an entry to my .Xdefaults to change the translations >for all of the text widgets in a specific application. Is there an easy Dont' do it in .Xdefaults, please. Use application-class resource files. Dumping resources into .Xdefaults is one of the worst habbits in X-world. >way of doing this. Currently I have setup a #define with the translations >that I want. I apply that definition to each text widget. I would like >to enter one line and have it affect all of the text widgets for this >application. > >cem*messageText.translations: #override\ > Ctrlf: forward-character()\n\ > etc... > Have you tried: cem*XmText.translations: .... (where XmText is the *class* name of the text widget, note that text field is a different class ... ) -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky {...}sunpeaks!auto-trol!marbru (303) 252-2499 (sometimes also: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404