Xref: utzoo comp.windows.x.motif:1376 comp.windows.x:30295 Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!oakhill!ephrem From: ephrem@oakhill.UUCP (Ephrem Chemaly) Newsgroups: comp.windows.x.motif,comp.windows.x Subject: Tanslation tables problem. Keywords: translation, action. Message-ID: <4296@soleil-tx.oakhill.UUCP> Date: 5 Dec 90 15:45:49 GMT Organization: Motorola Inc. Austin, Tx Lines: 53 This might be a repost, please excuse the waisted bandwidth if it realy is a repost. --------------------------------------------------------------------------------- I am having problems with the translation tables. I am running X11R4 and Motif 1.0 from MIT on a Sun 3/260, and X11R3 from Apple, and Motif 1.0 from Integrated Computer Solutions on an MacIntosh with A/UX. The probelm is on both machines. The problem: For a widget of the xmPushButtonWidgetClass I am trying to add the XmNhelpCallback to display some help for this push button. In my C code I write: { ... n = 0; HelpCallback[0].callback = HelpProc; HelpCallback[0].closure = (caddr_t)"Help string."; XtSetArg(args[n], XmNhelpCallback, HelpCallback); n++; XtCreateManagedWidget("Name", xmPushButtonWidgetClass, parent, args, n); ... } In the x resource data base file I write: ... *Name.translations: #augment\n\ : Help()\n\ F1: Help() ... Now if I push the 3rd mouse button, or the F1 key I get the help function. But I can not push button 1 and call the XmNactivateCallback function. #augment is acting like #replace. I have also tried, #replace, and #override, they all act like #replace. Has anybody seen that problem, or am I doing something wrong. Please use the address below to reply by e-mail. Thanks in advance, Ephrem A. Chemaly +=========================================================================+ | Motorola Inc. Ephrem A. Chemaly | | 6501 William Cannon Drive West | | Austin, Texas 78735 U.S.A. | | Mail Drop: OE-21 | | (512) 891-2760 | | | | Internal Addr: ephrem@soleil-tx (or at) oakhill!soleil-tx!ephrem | | Internet Addr: ...!soleil-tx.sps.mot.com!ephrem | | UUCP Address: oakhill!soleil-tx!ephrem@cs.utexas.edu | +=========================================================================+