Software Customisation Guide

Forms : Form Members : Quit/Close Callback
All Forms have a QUITCALL member that the user can pass a standard callback string. This is executed whenever the user presses the Quit/Close icon (X) on the title bar of forms and the main application window.
If an open callback is used then it is called with the FORM object as its first parameter and ‘QUIT’ as its action string.
For forms of type MAIN, the QUITCALL callback is executed, if present. This permits the user to terminate the application, and so the associated PML callback should prompt the user for confirmation.
If the user confirms the quit, then the callback should close down the application, and not return. If the user decides not to quit, then the callback should return an error to indicate the decision to F&M.
Use return errornoalert if the user wants to avoid displaying an error alert. If the form has no QUIT callback, then the QUIT event will be ignored.
Note:
F&M does not display an alert for the returned error, it is merely for communication. The user does not need a QUIT callback if they just want to allow the form to be hidden. For DOCUMENT forms (MDI children) only, the callback must not display an alert as this will cause some gadgets to malfunction afterwards.

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo