You can't override the close message, since this message is only a
notification because it isn't initiated directly by user action. You
can remove the close box entirely by setting the "decorations"
property, however. Other than that, all you can do is reopen the
stack after it gets closed.
> It's trivially easy in Tcl/Tk (nudge, nudge, Scott)
Yeah, but that's because you get to (have to) deal with raw X events
in Tk, even to the point of using the X definitions for the message
names. This goes into the "more than enough rope" category IMHO.
It's also going to look mighty strange to people who don't know the
ICCCM documentation (or who are developing stacks for the Mac, OS/2 or
Windows, nudge, nudge ;-)
I'll a message for this on the feature request list. It would work
like the keyDown message: if you have a handler for it that doesn't
pass it, the default action (inserting a character or closing the
window) isn't taken.
> -Earle
>
> --
> Earle Lowe
> emlowe@fsa.ca
> FSA Corporation
> Performance and system software for UNIX networks.
>
>
-- *********************************************************************** * Scott Raney 303-447-3936 Remember: the better you look, * * raney@metacard.com the more you'll see -- Lidia * ***********************************************************************