Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!msi.umn.edu!noc.MR.NET!news.stolaf.edu!skadi.physics.stolaf.edu!tgades From: tgades@stolaf.edu (Anthony M Gades) Newsgroups: comp.windows.x Subject: Help killing pop-up menu. Message-ID: <1991Apr13.024943.16625@news.stolaf.edu> Date: 13 Apr 91 02:49:43 GMT Sender: news@news.stolaf.edu Organization: St. Olaf College; Northfield, MN USA Lines: 52 Originator: tgades@skadi.physics.stolaf.edu 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