[comp.windows.x] MenuPopdown problems

mcintyrd@cs.rpi.edu (David McIntyre) (04/12/89)

I have an application that is causing me troubles since I have
switched from the old toolkit initialization method to the new
way (with application contexts).

I am using the menubox widgets from the contrib tape.  They use
the translation table actions MenuPopup and MenuPopdown.  These
actions are registered from within the toolkit, specifically
_XtPopupInitialize.

Everything worked using  the old XtInitialize.  Now, when my application
starts, I get a series of:
	X Toolkit Warning: Actions not found: MenuPopdown
		and
	X Toolkit Warning: Actions not found: MenuPopup
messages.

My menus do not work then, of course.  What puzzles me is that
the function _XtPopupInitialize is called, so these actions
should be added!!

So, where are these actions?  Am I not doing something right?  The
code is a little difficult to read (and big) so posting it probably
wouldn't do any good.

			Thanks in advance,
				Dave

Dave "mr question" McIntyre     |      "....say you're thinking about a plate
mcintyre@turing.cs.rpi.edu      |       of shrimp.....and someone says to 
office : 518-276-8633		|	you `plate,' or `shrimp'......"
home   : 518-271-6664		|

mcintyrd@cs.rpi.edu (David McIntyre) (04/12/89)

In article <1241@rpi.edu> I write:
>I have an application that is causing me troubles since I have
>switched from the old toolkit initialization method to the new
>way (with application contexts).
>
>I am using the menubox widgets from the contrib tape.  They use
>the translation table actions MenuPopup and MenuPopdown.  These
>actions are registered from within the toolkit, specifically
>_XtPopupInitialize.

Well, the problem appears to be that _XtPopupInitialize() calls
XtAddActions() instead of XtAppAddActions().

When I add a call to XtAppAddActions() on the same actions
record (tmActions) everything works.

Is this a bug?  Or a feature?

				-Dave

Dave "mr question" McIntyre     |      "....say you're thinking about a plate
mcintyre@turing.cs.rpi.edu      |       of shrimp.....and someone says to 
office : 518-276-8633		|	you `plate,' or `shrimp'......"
home   : 518-271-6664		|