* problem trapping Motif Close function on DEC Alpha
@ 1993-01-26 16:15 Wayne Scott
0 siblings, 0 replies; 2+ messages in thread
From: Wayne Scott @ 1993-01-26 16:15 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread* problem trapping Motif Close function on DEC Alpha
@ 1993-01-26 16:15 Wayne Scott
0 siblings, 0 replies; 2+ messages in thread
From: Wayne Scott @ 1993-01-26 16:15 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-01-26 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-01-26 16:15 problem trapping Motif Close function on DEC Alpha Wayne Scott
-- strict thread matches above, loose matches on Subject: below --
1993-01-26 16:15 Wayne Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox