Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Translation Table Mgmt Part II Message-ID: <8910261959.AA14348@expo.lcs.mit.edu> Date: 26 Oct 89 19:59:50 GMT References: <5891@merlin.usc.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 38 > Reference Article 14970 and 14993 These number are not real useful to anyone who is reading this list via the xpert mailing list... > 1. How do I set tm_table to my default translation table? > I have defined my Translation table as follows: > static String keys = "CtrlD: noop()\n\..."; > static XtActionsRec no_actions[] = {{"noop",noop},}; What do you mean "My default trans. table?" If I understand you correctly you want to have a translation table that is overrideable by the user, but is not the same as the widget's default table. If this is the case then you need to put your translation table in the application's app-defaults file, and install it in /usr/lib/X11/app-defaults/. > 2. Why can't I get the following to work? > static Arg setargs[] = { > {XtNtranslations, (XtTranslations)defaultTextTranslations}, > }; The translations passed into SetValues must first be put into the toolkits internal format, use XtParseTranslationTable(defaultTextTranslations). and then pass the result to XtSetValues(). > I apologize for the basic nature of the above questions. No, apology necessary, some people don't have wizards just down the hall. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213