[IronPython] [Noob]Ironpython catching Windows 'destroy' message, and posting confirm dialog
drken567 at gmail.com
Thu Feb 18 13:54:53 PST 2010
That looks interesting; I found a pretty explicit article on how the
'Closing' event works at:
(about 1/2 way down the page).
It looks like an event handler similar to mine could be used to cancel the
'Closing' event and preserve the window, but I haven't been able to
determine how to attach the event handler to my window in IronPython. Would
I be doing something like:
mywindow.Closing += myCloseHandler
to get the handler to catch the Closing event?
Anything that talks about "window messages" or "subclassing" is pretty-much
> incompatible with WPF.
> What you really want to do is handle the Closing event on the WPF Window
> object. This will give you the opportunity to cancel.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users