HyperCard: "resume" Handler Under MultiFinder



My HyperTalk programming manual says "resume" is sent up the chain of handlers
when you quit an application launched from HyperCard. I put the following
handler into the "Stack Script":

on resume
put "Hello World"
end resume

When I quit the application, nothing happens. Do you have any suggestions?

HyperCard does not generate "suspend" and "resume" messages when running under
MultiFinder. This is probably why the stack script resume handler is never
called.

If MultiFinder is not being used, another resume handler is probably called
first, and is not passing the message to the next object in the hierarchy.

Messages are passed through the object hierarchy in the following order:

Buttons and fields
Cards
Backgrounds
Stacks
Home Stack
HyperCard

Based on this hierarchy, we would check for resume handlers in the following
scripts: the card script for the card from where the application was opened,
and the background script for the card from where the application was opened.

(NOTE: The "suspend" and "resume" messages are not passed to buttons and
fields.)

If a resume handler is found, add the line "pass resume" just before the
"end resume" line in the handler. For example:

on resume
-- Whatever script that happens to be here
-- Whatever script that happens to be here
-- Whatever script that happens to be here
-- Whatever script that happens to be here
pass resume
end resume


Published Date: Feb 18, 2012