suspend

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
suspend
Associationscard
Summary

Sent to the current card when the application moves to the background.

Introduced2.0
OSmac, windows, linux
Platformsdesktop, server
Example
on suspend
  hide stack "Toolbar"
end suspend
RelatedControl Structure: pass
Message: resume, shutdown, suspendStack
Glossary: application, current card, message, trap
Description

Handle the suspend message if you want to perform some action when the application is made inactive.

The suspend message is sent whenever the user switches to another program.

The actual switch is not triggered by the suspend message, so trapping the message and not allowing it to pass does not prevent the user from switching out of the application.