Yes, the window will still close. The purpose of the CancelClose and
Close events is to provide hooks to allow you to cancel the close
operation and to implement specific behavior as the window closes,
respectively. If you return false from CancelClose, the window is
closing. Close provides a last opportunity to do something, but at
that point it's too late to prevent the window from being closed.
Charles
On Nov 12, 2006, at 3:02 PM, William Squires wrote:
What if you put no code in the Close event (Events | Close)? Will
the window still close? i.e. what is the 'real' purpose of the
window's Close event? Is it just a notification you can use to
clean up (and the window will close itself regardless), or are you
(the programmer) responsible for calling "Self.Close" or
"Self.Hide" in the Close event?
On Nov 12, 2006, at 1:56 PM, [EMAIL PROTECTED] wrote:
On Nov 12, 2006, at 2:44 PM, William Squires wrote:
What, exactly, happens when a user clicks on a window's 'close
box' widget?
As far as your code is concerned, CancelClose fires, and if it
returns false, then Close fires, and then the window goes away and
is unloaded from memory behind the scenes. I believe all
references to the window become Nil at that point too, but I am
95% sure.
Andrew Keller
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>