Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!convex.UUCP!root From: root@convex.UUCP (Superuser) Newsgroups: comp.windows.x Subject: Lost mail for you Message-ID: <9006071734.AA16042@sushi> Date: 7 Jun 90 17:34:55 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 59 From pescadero.stanford.edu!expo.lcs.mit.edu!xpert-mailer Fri Jun 1 13:52:08 1990 remote from convex Received: by sushi (5.51/7.0) id AA05820; Fri, 1 Jun 90 13:52:08 CDT Received: by convex.COM (5.51/4.7) id AA08337; Fri, 1 Jun 90 13:51:26 CDT Received: from Erebus.Stanford.EDU by uxc.cso.uiuc.edu with SMTP (5.62+/IDA-1.2.8-900601) id AA24183 (for salevin%drlc1.UUCP@convex.com); Fri, 1 Jun 90 13:47:14 -0500 Received: from Hanauma.Stanford.EDU by erebus.Stanford.EDU with TCP; Fri, 1 Jun 90 11:51:03 PDT Received: by hanauma.stanford.edu (5.51/7.0) id AA19372; Fri, 1 Jun 90 11:46:59 PDT Received: from EXPO.LCS.MIT.EDU by Pescadero.Stanford.EDU (5.59/25-eef) id AA23118; Fri, 1 Jun 90 11:45:54 PDT Received: by expo.lcs.mit.edu; Fri, 1 Jun 90 11:25:15 EDT Received: by expo.lcs.mit.edu; Fri, 1 Jun 90 11:24:21 EDT From: convex!expo.lcs.mit.edu!kit (Chris D. Peterson) Message-Id: <9006011524.AA12664@expo.lcs.mit.edu> To: cameron@cs.flinders.oz.au Cc: xpert@expo.lcs.mit.edu, kit@expo.lcs.mit.edu Subject: Re: Problems with the SimpleMenu In-Reply-To: Your message of 01 Jun 90 06:14:39 GMT. <334@flinders.cs.flinders.oz> Date: Fri, 01 Jun 90 11:24:20 -0400 > I am trying to convert a program I wrote using X11R3 to X11R4. The major > change necessary is the use of the SimpleMenu rather than the "box full of > buttons" that I used previously. > The development is occuring on a Sun4 under SunOS 4.0.3 with X11R4 (patches > 1-9 applied). > The following is some of the code used for the menu: > /* part of translation table for a viewport widget */ > :XawPositionSimpleMenu(menu) MenuPopup(menu)\n\ This seems just fine. I have code very similar to this in my applications. The problem appears to be that the grab is not getting activated. Often this is caused when some modifiers are set on your button press. The Translation table defaults to a "don't care" about the modifiers, while the grab mechanism must have an exact match. If this is actually the case, it should affect all menus on your display. Are the popup menus in xterm working correctly? If not then possibly you have some modifier set that is not affecting you. I have seen this happen with the Num Lock key on some displays. An example for the rest of you: Try using SHIFT-CTRL to pop up the menus in xterm. The menu will popup just fine, but the items will not be selectable. If this is not the problem then I suppose you should send me a SHORT example program that demonstrates the bug, and I will see what I can do. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213