Window.CancelClose Event

The window is about to be closed by the user clicking the close button or by calling the Quit method. When the application is quitting, CancelClose and Close are called as a pair for each open window. Return True to prevent the window (and in the case of the Quit method, other open windows) from closing.The parameter appQuitting is True when the window is being closed because the whole application is quitting and False when only the window is being closed.

Syntax
result = CancelClose( appQuitting )

Parameters
appQuitting | Boolean

Return Value
Result | Boolean

# Notes