Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!seismo!hal!nancie From: nancie@hal.CSS.GOV (Nancie Matson) Newsgroups: comp.windows.x Subject: Athena SimpleMenu Widget Message-ID: <430@hal.CSS.GOV> Date: 3 May 90 12:53:12 GMT Reply-To: nancie@hal.css.gov (Nancie Matson) Organization: ENSCO Inc., Melbourne FL Lines: 73 I am trying to use the Athena SimpleMenu Widget to create a popup menu inside a viewport widget. According to the X11R4 documentation in order to position the widget I need to add XawPositionSimpleMenuWidget to the translation table of the widget that will do the popping up of the menu. When I try this, the menu never appears. Also, I have written a set of callbacks for each entry in the menu, but each time I try to select an entry nothing happens (the menu just get's popped down). I would like to find out if anyone has some sample code for using the SimpleMenu widget as a popup. I have examples that use the MenuButton, but I haven't had much luck with them. Also, I have tried to set numerous resources for the wiget including foreground color for the entries, but It doesn't seem to be working. Any ideas? ------------------------------------------------------------------- Here is the code for generating the Widget: menu = XtCreatePopupShell("menu",simpleMenuWidgetClass,viewport, NULL,0); for (i=0; i: XawPositionSimpleMenu(menu) NmrdMap*menu*label: Main Menu NmrdMap*form*viewport*menuLabel*foreground: Red NmrdMap*form*viewport*menu*foreground: Red NmrdMap*form*viewport*menu*background: White NmrdMap*menu*geometry: 100x135 NmrdMap*form*viewport*menu*rowHeight: 25 NmrdMap*form*viewport*menu*borderColor: PaleGrey NmrdMap*form*viewport*menu*borderWidth: 3 NmrdMap*form*viewport*menu*cursor: sb_right_arrow NmrdMap*form*viewport*menu*menuOnScreen: True ---------------------------------------------------------------- Currently, label,geometry,borderColor,borderWidth,cursor and MenuOnScreen work, but the others don't. Thanx for any help! Nancie Matson Ensco, Inc.