Exit_Application - cDesktop
Starts the process of closing an application
Type: Procedure
Syntax
Procedure Exit_Application
Call Example
Send Exit_Application
Description
The Exit_Application message is used to close the program.
What happens during the closing process is:
-
Verify_Exit_Application is sent to the main panel. By default, it sends Verify_Exit_Application to all views. Each view checks to see of there are changes and prompts Verify_Exit. If any of these return a non-zero value, the closing is halted. Verify_Exit_Application in any of these objects (main panel or views) can be augmented. You should always forward send this message.
-
If the main panel and all views allow the exit, Notify_Exit_Application is sent to the main panel. It saves the environment and sends Notify_Exit_Application to all views, which saves the environment for each view. If you augment these, you probably want to forward send them, as well.