This event is fired whenever the user attempts to quit the program using the system buttons or the menus.
Set the variable 'project_can_exit' to True if the project can close (and likely close the application, unless initiated by a call to load_project). Set it to false if the project cannot close. By default, the project will close if you don't set the variable.
script on_project_can_exit is project_can_exit := ask ('Are you sure you want to quit?', True) end script quit is -- user-supplied script call ('on_project_can_exit')
if project_can_exit then exit end
end