Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!cbnewsm!mls From: merlyn@attunix.att.com Newsgroups: comp.windows.open-look Subject: re: Top Level Shells Message-ID: <1991Apr10.134917.4691@cbnewsm.att.com> Date: 10 Apr 91 13:49:17 GMT Sender: mls@cbnewsm.att.com (mike.siemon) Organization: AT&T Bell Laboratories Lines: 26 > How is it possible to create more than one toplevel window > in an openlook application. I create a new ApplicationContext, do an > XtOpenDisplay and then XtAppCreateShell using applicationShellWidgetClass. > I'm reasonably sure that this is the wrong widet class! The class is correct. Unfortunately, one cannot use more than one display with the current OLIT (sorry!) From the top-level widget returned by OlInitialize, fetch the Display pointer and use XtAppCreateShell with the applicationShellWidgetClass (or any other shell class of interest, such as transientShell). > I can't get the WM_DELETE_WINDOW protocol to work under openlook. > ... > After this I have tried adding actions using XtOverrideTranslations > for WM_PROTOCOLS and also in desperation XtAddEventHandler > (which incidentally gave me some degree of sucess!) These should work just fine (I've used both methods with success). But you found otherwise, so can you help me understand what doesn't work? Thanks! Steve Humphrey UNIS System Laboratories merlyn@attunix.att.com