Window.onCloseQuery

Function/Meaning
Confirm closing window
Type
Event of the Window class
Syntax
onCloseQuery(canclose)
Arguments
canclose Indicates whether the window can be closed. During the process of calling event handlers from a subclass to a superclass, the decision made by the subclass on whether the window can be closed is passed.
Description
This event is used to confirm whether the window can be closed. If the window cannot be closed, pass false as an argument to the same method of the superclass.