Livecode Wiki
Advertisement

A Message sent to the current card when the application is brought to the foreground. If there is a message handler by the same name in the message path, then it will be executed.

Message[]

Syntax:

resume

The resume message is sent whenever the user switches back to the application from another program.

Message handler[]

Examples:

on resume
  show stack "Toolbar"
end resume

Use the resume Message handler to perform some action when the application is made active.

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

See also: focusIn, suspend, startup, openStack & resumeStack.

Advertisement