Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: Accelerators....... Message-ID: <9009261521.AA23448@excess.lcs.mit.edu> Date: 26 Sep 90 15:21:41 GMT References: <9009261444.AA14299@cscsun1.larc.nasa.gov> Sender: root@athena.mit.edu (Wizard A. Root) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 23 > This question concerns the use of accelerators > to add a keyboard interface to the R4 SimpleMenu widget. > The goal is to associate the callback routines of the menu entries > (smeBSB objects) with keyboard entries in another widget. R4 xmh has accelerators for many menu commands. It also allows the user to create buttons for the same commands, similar to the R3 interface. > The R4 docs do not list accelerators as allowable resources for the menu > objects.....Is this the problem????? No; there is an accelerator resource associated with the Simple Menu widget that you can use. The accelerators are associated with the menu, not with the individual menu entries, because the SmeBSBObjectClass (the Athena widget set simple menu entry object class name) is not a subclass of Core. > If not, can anyone give me an idea on how to associate the accelerators > with the smeBSB objects in the SimpleMenu........... Eyeball the accelerator resources in clients/xmh/Xmh.ad.