[comp.windows.x.motif] Popups over self-designed widgets don't work.

digger@cae780.csi.com (Doug Selph) (02/15/91)

	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