home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!usc!elroy.jpl.nasa.gov!ames!pasteur!dog.ee.lbl.gov!ucbvax!oceanroutes.ns.ca!deveau
- From: deveau@oceanroutes.ns.ca (Terry J. Deveau)
- Newsgroups: comp.windows.x.motif
- Subject: XmNmenuAccelerator
- Message-ID: <9208121753.AA13127@BU.EDU>
- Date: 12 Aug 92 17:53:49 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: inet
- Organization: Oceanroutes Canada Inc.
- Lines: 24
-
- I am using <Key>Return as an XmNmenuAccelerator in an XmMENU_POPUP
- XmRowColumn widget. This works fine. What I want to do is use a
- couple of other events to also act as accelerators on the same menu:
- namely, <Key>space and <BtnDown>. The reason I want to use <Key>space
- is that in every other menu and button of my application, space and
- Return are interchangable, and I want that behaviour to be consistent
- here too. The reason I want to use <BtnDown> is so that the popup
- is entered in keyboard traversal mode (as opposed to mouse drag mode)
- just like in a pulldown from a menu-bar.
-
- Currently, <Key>Return, <Key>space, and <BtnDown> on the initial widget
- all bring up the popup menu; that works fine. It's just that only
- <Key>Return brings it up in keyboard traversal mode, since only it is
- the XmNmenuAccelerator.
-
- How can I make the other two events trigger the XmNmenuAccelerator action?
- I have tried installing the other accelerators on dummy popups and
- augmenting the original popup with the accelerators from the dummies
- using XtInstallAccelerators, but this had no effect.
-
- If I knew the contents of struct _TranslationData it might help; does
- anyone know where this is defined?
-
- I am using Motif 1.0, X11R3, HP-UX 7.00 on an HP 9000/834. Any ideas?
-