Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!emory!gatech!taco!gyro.cc.ncsu.edu!sam From: sam@gyro.cc.ncsu.edu (Sam Moore) Newsgroups: comp.windows.x.motif Subject: Easy way to change translations for all text widgets in an app? Message-ID: <1991Feb27.155939.22542@ncsu.edu> Date: 27 Feb 91 15:59:39 GMT Sender: news@ncsu.edu (USENET News System) Organization: North Carolina State University Computing Center Lines: 43 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.. , and have all of the text widgets get these translations. Is the only way to do this to name all of my text widgets the same thing, say "text", and then make sure that no two have the same container hierarchy? Currently I name my widgets by what they are like messageText, above. I have not been able to wildcard with a widget name, so I can't have all of my text widgets end in Text and then match for there names with somthing like: cem*Text.translation: etc... I have also tried: cem*textTranslations: etc... ,and: *textTranslations: etc... Thanks, Sam -- ------------------------------------------------------------------------------ | Sam Moore | Sam_Moore@ncsu.edu | NCSU Computing Center | ------------------------------------------------------------------------------