[comp.windows.x] XtInstallAcceleratorsEverywhere

argv@turnpike.Eng.Sun.COM (Dan Heller) (07/04/90)

XtInstallAllAccelerators() will descend the source widget and install
the accelerators into the destination widget.  But, there is no way to
install those accelerators down thru all the children in the destination.
For example, say I have a "quit" button in the application and I want
to pick up ^C from anywhere in the application.  I'd have to install
the accelerator into every widget in the hierarchy, no?

I realize I could write a routine to do this automatically, but I am
pretty sure I've seen this done already, but I can't find a corresponding
Xt function to do it.  Does there exist one?

--
dan
----------------------------------------------------
O'Reilly && Associates   argv@sun.com / argv@ora.com
Opinions expressed reflect those of the author only.