Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mcnc!decwrl!cae780!digger From: digger@cae780.csi.com (Doug Selph) Newsgroups: comp.windows.x.motif Subject: Popups over self-designed widgets don't work. Message-ID: <11245@cae780.csi.com> Date: 15 Feb 91 00:39:02 GMT Reply-To: digger@csi.com (Doug Selph) Distribution: usa Organization: Comdisco Systems Inc., Foster City, CA Lines: 29 Hi World! I am creating my own widgets under motif 1.0.1. I created a simple axis widget. What I want to do is have a popup menu activate over this widget. I created the popup widget in uil as a 'XmPopupMenu'. There is a create callback for the popup which calls, XtAddEventHandler(myNewAxisWidget, ButtonPressMask, False, PostIt, popupWidget); The PostIt() routine checks to make sure the event button is '3' and if it is, Manages the popup. Here's what happens: the PostIt() routine is only called when buttons 1 or 2 are depressed. It is not called when button 3 is depressed. Why not? If I change "myNewAxisWidget" to the "bulletinBoardWidget" which is the parent of the axis widget, everything works fine. There is something about creating your widgets and XtAddEventHandler() which I am missing. The axis widget is a very basic widget that does not create any widgets inside of itself, but just does some drawing in it's space. I don't have any translations or actions in my axis widget. Any ideas? Please reply to digger@csi.com or ...uunet!cae780!digger Thanks ahead of time for any replies. ---digger