Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker!bloom-beacon!convex.UUCP!root From: root@convex.UUCP (Superuser) Newsgroups: comp.windows.x Subject: Lost mail for you Message-ID: <9006071721.AA14659@sushi> Date: 7 Jun 90 17:21:56 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 72 From pescadero.stanford.edu!expo.lcs.mit.edu!xpert-mailer Fri Jun 1 06:01:28 1990 remote from convex Received: by sushi (5.51/7.0) id AA13270; Fri, 1 Jun 90 06:01:28 CDT Received: by convex.COM (5.51/4.7) id AA22303; Fri, 1 Jun 90 06:01:19 CDT Received: from Erebus.Stanford.EDU by uxc.cso.uiuc.edu with SMTP (5.62+/IDA-1.2.8-900601) id AA15880; Fri, 1 Jun 90 05:57:02 -0500 Received: from Hanauma.Stanford.EDU by erebus.Stanford.EDU with TCP; Fri, 1 Jun 90 03:42:52 PDT Received: by hanauma.stanford.edu (5.51/7.0) id AA10977; Fri, 1 Jun 90 03:56:51 PDT Received: from EXPO.LCS.MIT.EDU by Pescadero.Stanford.EDU (5.59/25-eef) id AA21533; Fri, 1 Jun 90 03:55:36 PDT Received: by expo.lcs.mit.edu; Fri, 1 Jun 90 03:06:40 EDT Received: from bloom-beacon.MIT.EDU by expo.lcs.mit.edu; Fri, 1 Jun 90 03:06:17 EDT Received: by bloom-beacon.MIT.EDU (5.61/25-eef) id AA18329; Fri, 1 Jun 90 02:51:33 EDT Received: from USENET by bloom-beacon.mit.edu with netnews for xpert@expo.lcs.mit.edu (xpert@expo.lcs.mit.edu) (contact usenet@bloom-beacon.mit.edu if you have questions) Date: 1 Jun 90 06:14:39 GMT From: convex!sirius.ucs.adelaide.edu.au!cameron%flinders%augean (Cameron Humphries) Organization: Flinders University Subject: Problems with the SimpleMenu Message-Id: <334@flinders.cs.flinders.oz> Sender: convex!expo.lcs.mit.edu!xpert-request To: xpert@expo.lcs.mit.edu Hi, 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\ /* menu is created statically */ menuW = XtCreatePopupShell("menu",simpleMenuWidgetClass,toplevel,NULL,0); newW = XtCreateManagedWidget("new",smeBSBObjectClass,menuW,newargs, XtNumber(newargs)); /* plus a few more entries */ /* used in creation of the menu entry above */ static XtCallbackRec newcallback[] = { {select_new,"new"}, {NULL,NULL}, }; static Arg newargs[] = { {XtNlabel,(XtArgVal)"New"}, {XtNcallback,(XtArgVal)newcallback}, }; When I run the program (BTW,its a graphical editor for soliton circuits) everything goes along fine until I try and popup the menu. I press the 3rd button and sure enough the menu pops up right under the cursor. However I cannot highlight any entries which of course means I cannot select any entries. Any help would be appreciated. Cameron Humphries Discipline of Computer Science email: cameron@cs.flinders.oz.au School of Information Science and Technology phone: +61 +8 201 2874 The Flinders University of South Australia fax : +61 +8 201 2904