From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,38a92f8fa7e1a144,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10b6ac,38a92f8fa7e1a144,start X-Google-Attributes: gid10b6ac,public X-Google-ArrivalTime: 1993-01-26 08:15:32 PST Xref: sparky comp.unix.osf.osf1:70 comp.windows.x.motif:8925 Newsgroups: comp.unix.osf.osf1,comp.windows.x.motif Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!decwrl!adobe!ucbvax!agate!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!att-out!walter!porthos!iscp.bellcore.com!wws From: wws@iscp.bellcore.com (Wayne Scott) Subject: problem trapping Motif Close function on DEC Alpha X-Orig-Msg-Id: <1993Jan26.161532.28165@porthos.cc.bellcore.com> Message-ID: <1993Jan28.160148.3299@adobe.com> Apparently-To: motif@alphalpha.com Sender: netnews@porthos.cc.bellcore.com (USENET System Software) Organization: Bellcore X-Old-Received: by alfalfa.com ( 5.52 (84)/test) id AA26760; Thu, 28 Jan 93 06:43:16 EST by alphalpha.UUCP ( 5.52 (84)/ASI-1.0) id AA23065; Thu, 28 Jan 93 06:20:40 EST from ucbvax.Berkeley.EDU by BU.EDU (1.99) Tue, 26 Jan 93 19:42:31 -0500 by ucbvax.Berkeley.EDU (5.63/1.43) id AA16750; Tue, 26 Jan 93 16:28:31 -0800 Distribution: usa Date: Tue, 26 Jan 1993 16:15:32 GMT Hello: I have an application in which I'm trying to trap the Motif Close function to post a confirmation box before stopping. I run it on a DEC Alpha system with OSF/1. When I display it on an Alpha workstation, selecting the Close menu item kills the application. When I display it on a DECstation 5000, the Close function is trapped and my confirmation box is displayed. Is this a bug on the Alpha or do I need to do something new? Our system administrator thinks we're running X11R5 on the Alpha; X11R4 is on the 5000. Is there anything wrong with this code? XtRealizeWidget( appShell ); /* // The following lines of code disables the default behavior of // the process when the Motif "Close" is selected, and instead // calls the function stopMocCB(). */ /* *** THIS IS BROKEN ON THE ALPHA PLATFORM *** */ XtSetArg(args[0], XmNdeleteResponse, XmDO_NOTHING); XtSetValues(appShell, args, (Cardinal) 1); wmDeleteWindow = XmInternAtom(XtDisplay(appShell), "WM_DELETE_WINDOW", False); XmAddWMProtocolCallback(appShell, wmDeleteWindow, (XtCallbackProc) stopMocCB, (caddr_t) appShell); Thank you, Wayne Scott