Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!oliveb!amdahl!JUTS!duts!gjf00 From: gjf00@duts.ccc.amdahl.com (Gordon Freedman) Newsgroups: comp.windows.x.motif Subject: Re: Easy way to change translations for all text widgets in an app? Message-ID: <91mA02CF05nw01@JUTS.ccc.amdahl.com> Date: 2 Mar 91 03:03:49 GMT References: <1991Feb27.155939.22542@ncsu.edu> Sender: netnews@ccc.amdahl.com Reply-To: gjf00@DUTS.ccc.amdahl.com (Gordon Freedman) Organization: Amdahl Corporation, Sunnyvale CA Lines: 37 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 >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\ > Ctrlb: backward-character()\n\ > Metaf: forward-word()\n\ > etc... > >This is the way that I have been doing it. I would like to do something like: > >cem*text.translations: etc.. > >Thanks, > >Sam >-- >------------------------------------------------------------------------------ > | Sam Moore | Sam_Moore@ncsu.edu | NCSU Computing Center | >------------------------------------------------------------------------------ Try this: cem*XmText.translations: #override\ Ctrlf: forward-character()\n\ etc... Hope this works for you, I haven't tried this exact resource, but have specified resources for classes using Xm to specify the class. -- Gordon Freedman: gjf00@duts.ccc.amdahl.com Disclaimer: My opinions! Not my employers!