Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: R3 Athena translations Message-ID: <8910111838.AA12742@expo.lcs.mit.edu> Date: 11 Oct 89 18:38:01 GMT References: <8910111611.AA02603@LYRE.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 29 >> Ralph Swick > Duane Voth > > I have some other translations that I don't want to let the user override. > The only way to guarantee this is via XtOverrideTranslations() > after the widget has been created, as you note. XtSetValues() will also not let the user override. > > Lets suppose I have an application that uses text widgets. > > I don't like some of the widget designer's defaults and so I've created > > "defaultTranslations" that I want to override the widget's internal > > defaults but that can still be overridden by the user. The way we have accomplished this in our applications is by using the application defaults file. You can specify a translation for the widget as a resource, and the user is then free to override this resource with his own translation. This is much more preferable to munging the widget class data for the widget, it is also more portable. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213