Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!sirius.ucs.adelaide.edu.au!augean!flinders!cameron@cs.flinders.oz.au From: cameron@cs.flinders.oz.au (Cameron Humphries) Newsgroups: comp.windows.x Subject: Problems with the SimpleMenu Message-ID: <334@flinders.cs.flinders.oz> Date: 1 Jun 90 06:14:39 GMT Sender: news@flinders.cs.flinders.oz Organization: Flinders University Lines: 46 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