Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!cica!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!MIPS.COM!peebles From: peebles@MIPS.COM (Andrew Peebles) Newsgroups: comp.windows.x.motif Subject: Re: Motif Translations Message-ID: <9009202217.AA05018@krell.mips.com> Date: 20 Sep 90 22:17:13 GMT References: <9009201937.AA01041@turnpike.Eng.Sun.COM> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 45 >On Sep 19, 11:51pm, Kee Hinckley wrote: >> > *translations: #augment\n\ >> > Help: Help() >> > >> > This is the only way that I can find to make the Help key call a widget's >> > help callback. Even if I had specified the translation argument for >> >> Really? All I did was add a helpCallback and it all just worked. 1.0 and 1 ***.1. > >I tried that on my sun3/60 and it doesn't work. Motif seems to think my >Help key doesn't exist. >Could be my server, I guess. > >--dan Funny. I've been trying to get this to work all day, no go. I browsed through the 1.0 code, and there looks like there is little support for it. The 1.1 code looks like it works, but only when XmNtraversal = True. Here's the results of a " grep helpCallback *.c " in the 1.0 sources: FileSB.c: XtCallCallbacks (fs, XmNhelpCallback, &temp); Gadget.c: XmNhelpCallback, XmCCallback, XmRCallback, sizeof(XtCallbackList), Gadget.c: XtRemoveAllCallbacks (gw, XmNhelpCallback); List.c: XtCallCallbacks(lw,XmNhelpCallback,&cb); MainW.c: XtCallCallbacks(mw,XmNhelpCallback,&cb); Manager.c: XmNhelpCallback, XmCCallback, XmRCallback, sizeof(XtCallbackList) , Manager.c: XtRemoveAllCallbacks (w, XmNhelpCallback); PanedW.c: XtCallCallbacks (w, XmNhelpCallback, &call_value); Primitive.c: XmNhelpCallback, XmCCallback, XmRCallback, sizeof(caddr_t), Primitive.c: XtRemoveAllCallbacks (pw, XmNhelpCallback); ScrolledW.c: XtCallCallbacks(sw,XmNhelpCallback,&cb); TextIn.c: XtCallCallbacks(w, XmNhelpCallback, (Opaque) &cb); You can see that the FileSB widget supports it, probably through its help button, not translations. The List widget appears to support it, as well as MainWindow, PanedWindow, ScrolledWindow and Text. In 1.1, the support is centralized in the XmPrimitive class, but again, only if traversal is on. peeb