Syntax

on closeWindow
  ...
end closeWindow

Explanation

Whenever the user closes a window using its close box, or you use the go command to move from the current window to a card in a different window without using the in new window option, the closeWindow message is sent to let you perform some cleanup like deactivating menu items or showing a “no item selected” message in a palette window.

See Also