[comp.windows.x] Help killing pop-up menu.

tgades@stolaf.edu (Anthony M Gades) (04/13/91)

I am trying to use X for an application that I am bringing over
from a DOS machine.  THe problem I am having is how to make a 
pull-down menu disappear.  I have no problem getting it up on the
the screen, but I cannot get rid of it from within the program.

This is how I pop it up:

static void Pop_Up(argc, argv)
char **argv;
int argc;
{
	XtAppContext app_context;
	Widget topLevel, menu, button, entry;
	Arg arglist[1];

	topLevel = XtVaAppInitialize(
		&app_context,       /* Application context */
		"HCSTO",         /* Application class */
		NULL, 0,            /* command line option list */
		&argc, argv,        /* command line args */
		NULL,               /* for missing app-defaults file */
		NULL);              /* terminate varargs list */

	button = XtCreateManagedWidget("menuButton",
						  menuButtonWidgetClass, topLevel,
						  arglist, (Cardinal) 0);
	menu = XtCreatePopupShell("menu", simpleMenuWidgetClass,
						  button, NULL, 0);


____________________________________________________________

I have used XtDestroyWidget(w)
			Widget w;

But that does not make this disappear.  

Please reply by email, as I am sure that most people understand
how this works.

thanks,
	tgades@stolaf.edu




-- 
--------------------------------------------------------------
  _________                         Tony Gades St. Olaf College,
      /                       /     Northfield, MN  55057 
     /                       /      tel (507)-663-2725