malbert@jeeves.shearson.com (Marc Albert) (04/06/91)
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! I get the following messages: OPEN LOOK Toolkit Warning in application "XXX": Resolution map--missing "x"? [76] OPEN LOOK Toolkit Error in application "XXX": Internal error: no screen resolution map! Second Question: I can't get the WM_DELETE_WINDOW protocol to work under openlook. I'm using OLIT 1.X under OpenWindows 2.0. I do an XInternAtom(..."WM_DELETE_WINDOW") and an XSetWMProtocols. After this I have tried adding actions using XtOverrideTranslations for <Message>WM_PROTOCOLS and also in desperation XtAddEventHandler (which incidentally gave me some degree of sucess!) Any help would be appreciated. return address ...uunet!shearson.com!malbert
merlyn@attunix.att.com (04/10/91)
> 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 <Message>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