Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph Swick) Newsgroups: comp.windows.x Subject: Re: Problems on changing borderWidth in Athena text widget & using accelerators focusing input Message-ID: <9007022017.AA16180@lyre.MIT.EDU> Date: 2 Jul 90 20:17:10 GMT References: <9007021835.AA06703@mn.ecn.purdue.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: DEC/MIT Project Athena Lines: 30 > The second problem is about using accelerator: Your description isn't really clear enough for me to understand exactly what you're doing, though I think I have gist of it. Perhaps the following will help you: > I do > XtInstallAllAccelerators(... > for the first one selected, it works fine. But when second, > third, etc is selected, the focus is still on the first one > selected. It seems the accelerators installed by the first > one still have effect on rest of the widgets, When an accelerator table is installed on a destination widget, if the events specified in it duplicate events already specified for the destination then one of the two specifications is ignored. The default is to ignore the accelerator and leave the original binding alone ("#augment"; see Section 10.4 of the Xt manual.) > I could find any function to release/destroy added > accelerators. That's correct, there is no such function. You could save the original translations (before installing the accelerators) with XtGetValues and re-install them with XtSetValues if you wanted, but some might call that a hack. -Ralph