Error getting tags :
error 404Error getting tags :
error 404 shutdownRequest | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
shutdownRequest
Basics
Expander triangle
Type
Message
Syntax
shutdownRequest
See Also
Introduced
1.0
Changed
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to the current stack when the user tries to quit the application.
Examples

on shutdownRequest -- confirm with the user:
answer question "Are you sure you want to quit?" with "Yes" or "No"
if it is "Yes" then pass shutdownRequest -- allow to quit
end shutdownRequest

Additional Comments
Expander triangle

Handle the shutdownRequest message if you want to prevent the user from quitting the application.

Comments:

If the shutdownRequest handler does not pass the message or send it to a further object in the message path, the application does not exit. Passing the message allows the application to quit.

On OS X and Unix systems, if the operating system sends a SIGTERM signal to the application, Revolution sends a shutdownRequest message to the current stack. Passing the message causes the application to quit normally. If the message is trapped, the signal is ignored.

Changes to Revolution:

Handling of the SIGTERM signal was introduced in version 2.0. In previous versions, the SIGTERM signal did not cause a message to be sent.

User Comments
Expander triangle