home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21457 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.8 KB

  1. Path: sparky!uunet!mcsun!uknet!newcastle.ac.uk!blagdon!njkw
  2. From: J.K.Wight@newcastle.ac.uk (Jim Wight)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Strange Xt error with the SimpleMenu widget
  5. Message-ID: <C18xyA.BB5@newcastle.ac.uk>
  6. Date: 22 Jan 93 08:22:57 GMT
  7. References: <THOTH.93Jan20125138@beach.cis.ufl.edu>
  8. Distribution: comp
  9. Organization: University of Newcastle upon Tyne, UK, NE1 7RU
  10. Lines: 29
  11. Nntp-Posting-Host: blagdon
  12.  
  13. thoth@beach.cis.ufl.edu (Robert Forsman) writes:
  14. >  I was trying to pop up an Athena SimpleMenu without using the Xt
  15. >action routine XtMenuPopup.  The menu would appear, but no entries
  16. >would hilight.  After much pulling out of hair and experimentation
  17. >(and a little use of the debugger on the Xt library) I have found out
  18. >that I must insert a dummy call to XtMenuPopup if I want the default
  19. >menu translations to work properly.
  20.  
  21. >  From looking at the code, XtMenuPopup merely finds the widget and
  22. >performs the equivalent of an XtPopupSpringLoaded.  However when I
  23. >perform nothing but an XtPopupSpringLoaded in my click-tactical()
  24. >action routine, it still doesn't find the translations.
  25.  
  26. >  Is the XtMenuPopup something MORE than its action routine?
  27.  
  28. Here is a quote from the MenuButton documentation (4.6.3):
  29.  
  30.   "The MenuButton widget does not place a server grab on itself.  Instead,
  31.   PopupMenu is registered as a grab action.  As a result, clients which popup
  32.   menus without using XtMenuPopup or MenuPopup or PopupMenu in translations will
  33.   fail to have a grab active.  They should make a call to XtRegisterGrabAction
  34.   on the appropriate action in the application initialization routine, or use a
  35.   different translation."
  36.  
  37. Jim
  38. ---
  39. J.K.Wight@newcastle.ac.uk
  40. Department of Computing Science, University of Newcastle,  Tel: +44 91 222 8238
  41. Newcastle upon Tyne, NE1 7RU, United Kingdom.              Fax: +44 91 222 8232
  42.