Article View: comp.windows.x
Article #24348Re: Strange Xt error with the SimpleMenu widget
From: Jim Wight
Date: Fri, 22 Jan 1993 08:22
Date: Fri, 22 Jan 1993 08:22
29 lines
1900 bytes
1900 bytes
thoth@beach.cis.ufl.edu (Robert Forsman) writes: > I was trying to pop up an Athena SimpleMenu without using the Xt >action routine XtMenuPopup. The menu would appear, but no entries >would hilight. After much pulling out of hair and experimentation >(and a little use of the debugger on the Xt library) I have found out >that I must insert a dummy call to XtMenuPopup if I want the default >menu translations to work properly. > From looking at the code, XtMenuPopup merely finds the widget and >performs the equivalent of an XtPopupSpringLoaded. However when I >perform nothing but an XtPopupSpringLoaded in my click-tactical() >action routine, it still doesn't find the translations. > Is the XtMenuPopup something MORE than its action routine? Here is a quote from the MenuButton documentation (4.6.3): "The MenuButton widget does not place a server grab on itself. Instead, PopupMenu is registered as a grab action. As a result, clients which popup menus without using XtMenuPopup or MenuPopup or PopupMenu in translations will fail to have a grab active. They should make a call to XtRegisterGrabAction on the appropriate action in the application initialization routine, or use a different translation." Jim --- J.K.Wight@newcastle.ac.uk Department of Computing Science, University of Newcastle, Tel: +44 91 222 8238 Newcastle upon Tyne, NE1 7RU, United Kingdom. Fax: +44 91 222 8232
Technical Details
Message-ID:
<C18xyA.BB5@newcastle.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!newcastle.ac.uk!blagdon!njkwReferences:
<THOTH.93Jan20125138@beach.cis.ufl.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!newcastle.ac.uk!blagdon!njkw From: J.K.Wight@newcastle.ac.uk (Jim Wight) Newsgroups: comp.windows.x Subject: Re: Strange Xt error with the SimpleMenu widget Message-ID: <C18xyA.BB5@newcastle.ac.uk> Date: 22 Jan 93 08:22:57 GMT References: <THOTH.93Jan20125138@beach.cis.ufl.edu> Distribution: comp Organization: University of Newcastle upon Tyne, UK, NE1 7RU Lines: 29 Nntp-Posting-Host: blagdon