Name
Window.CloseRequest -- handle close request of window
Function
If you set up a notification on this attribute, the window won't be closed automatically when the user presses the window's close gadget. Instead, your event handler will be called and you have to close the window manually by setting Window.Open to False. Or you may choose to keep the window open if there are things that have to be finished first.

A typical use case for this attribute is to ask the user whether he wants to save the current project before terminating the application.

If there is no notification on this attribute, windows will be closed automatically when the close gadget is pressed.

Type
Boolean

Applicability
N


Show TOC