[comp.windows.x] Help with Xt Toolkit.

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

Can someone please help me with this Xt toolkit problem?


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