Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uwm.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!msi.umn.edu!cs.umn.edu!wytten From: wytten@umn-cs.cs.umn.edu (Dale Wyttenbach) Newsgroups: comp.windows.x Subject: XtDestroyWidget Message-ID: <1991Feb1.180909.8365@cs.umn.edu> Date: 1 Feb 91 18:09:09 GMT Sender: wytten@cs.umn.edu (Dale Wyttenbach) Organization: University of Minnesota, Minneapolis, CSci dept. Lines: 25 For the first time, I am writing an Xt application that doesn't use XtMainLoop (because I don't want to exit when the event loop exits). XtDestroyWidget doesn't make the window go away in my program. I have studied the O'Reilly books and other application source. Here is the relevent fragment: /* go */ app_context = XtWidgetToApplicationContext(top_widget); while (!alldone) { /* alldone is global */ XtAppNextEvent(app_context, &event); XtDispatchEvent(&event); } XtDestroyWidget(top_widget); return 0; } Please email suggestions. Thank you. dale -- ____________________________wytten@cs.umn.edu__________________________________ Sam Stone came home to his wife and family after serving in the conflict overseas and the time that he served had shattered all his nerves