Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!alice From: alice@athena.mit.edu (Timothy R Wall) Newsgroups: comp.windows.x.motif Subject: Getting the same popup menu on several different windows Summary: the popup doesn't appear on the main window Keywords: Graphs, contour plots, Motif Message-ID: <1991Mar19.061108.7197@athena.mit.edu> Date: 19 Mar 91 06:11:08 GMT References: <18768@ogicse.ogi.edu> Sender: alice@athena.mit.edu Distribution: usa Organization: Massachusetts Institute of Technology Lines: 31 I have created a popup menu to be posted via button press (exactly as in the Motif Programmer's Guide) on four FormDialogs and the application MainWindow. Each FormDialog may or may not be managed, but each has a single custom-widget child (I'll call Plotter). The MainWindow has a Form widget for a workarea, and that Form also has a Plotter child. The popup menu was created as a child of the appshell returned by XtInitialize. The popup menu should post on BP from any of the Plotter widgets; i.e. I want the same functions to be supplied each of the five Plotters. The same managing callback is added as an event handler for all five Plotter widgets. The problem is that the menu won't post in the MainWindow; I get a right-pointing arrow with a BP (Button3, which PostPopup looks for) everywhere in the workarea of the MainWindow. (Do I need to explicitly set the Form child using XmMainWindowSetAreas?) However, the popup posts fine with any of the FormDialogs. What seems to be bizarre is that once I have selected a button from the popup menu (i.e. activated a callback from the popup), the menu posts normally in the MainWindow, and I no longer get a right- pointing arrow elsewhere in the MainWindow. Help appreciated, trivia maybe. Timothy Wall Parsons Lab, MIT alice@athena.mit.edu