Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!drlc1.UUCP!salevin From: salevin@drlc1.UUCP (S. A. Levin[Stewart]) Newsgroups: comp.windows.x Subject: Translations and Accelerators Message-ID: <8910242023.AA09995@drlc1> Date: 24 Oct 89 20:23:33 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 22 Setting: MIT 11.3, TWM, Athena Widgets, unknown patch levels I want to bind string translations to menu actions. For concreteness, assume I pop up a menu with two items: "start" and "stop". I'd like to be able to type "sta" to invoke the first and "sto" to select the second. Query 1: Should the translation table: "s,t,a: Start()\n s,t,o: Stop()\n" invoke the appropriate actions when installed on the menu widget? Can anyone point me to a working example? Query 2: Can I use the same translation table as an accelerator attached to the parent of the menu widget to completely bypass the menu and go directly to the actions? If so, can you supply me with an example? Please E-MAIL to stew@hanauma.stanford.edu - Thanks.