home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / motif / 5591 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.7 KB

  1. 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
  2. From: deveau@oceanroutes.ns.ca (Terry J. Deveau)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: XmNmenuAccelerator
  5. Message-ID: <9208121753.AA13127@BU.EDU>
  6. Date: 12 Aug 92 17:53:49 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: inet
  9. Organization: Oceanroutes Canada Inc.
  10. Lines: 24
  11.  
  12. I am using <Key>Return as an XmNmenuAccelerator in an XmMENU_POPUP
  13. XmRowColumn widget.  This works fine.  What I want to do is use a 
  14. couple of other events to also act as accelerators on the same menu:
  15. namely, <Key>space and <BtnDown>.  The reason I want to use <Key>space
  16. is that in every other menu and button of my application, space and
  17. Return are interchangable, and I want that behaviour to be consistent
  18. here too.  The reason I want to use <BtnDown> is so that the popup
  19. is entered in keyboard traversal mode (as opposed to mouse drag mode)
  20. just like in a pulldown from a menu-bar.
  21.  
  22. Currently, <Key>Return, <Key>space, and <BtnDown> on the initial widget
  23. all bring up the popup menu; that works fine.  It's just that only
  24. <Key>Return brings it up in keyboard traversal mode, since only it is
  25. the XmNmenuAccelerator.
  26.  
  27. How can I make the other two events trigger the XmNmenuAccelerator action?
  28. I have tried installing the other accelerators on dummy popups and
  29. augmenting the original popup with the accelerators from the dummies
  30. using XtInstallAccelerators, but this had no effect.
  31.  
  32. If I knew the contents of struct _TranslationData it might help; does
  33. anyone know where this is defined?
  34.  
  35. I am using Motif 1.0, X11R3, HP-UX 7.00 on an HP 9000/834.  Any ideas?
  36.