{"identifier":18315,"topic":"System messages","name":"deleteBackground","text":"<code><pre>deleteBackground\n<\/pre><\/code> Handler: <br><br>\n\n <code><pre>on deleteBackground\n   <i>statements<\/i>\nend deleteBackground\n<\/pre><\/code>\nHyperCard sends the<code> deleteBackground <\/code>message to the card that is being deleted if no other cards in the stack share its background. HyperCard sends the message just before the card disappears. <br>\n<br>\nNote: You cannot stop a background from being deleted by trapping the <code>deleteBackground <\/code>message. Instead, you must handle the<code> doMenu <\/code>message or set the<code> cantDelete <\/code>property for the background. <br>\n","related":{"68822":"cantDelete","105361":"closeBackground","35579":"doMenu","4312":"Message sending orders","21577":"newBackground","22993":"openBackground","6031":"Where messages are sent initially"},"examples":"","demo":"","debug":{"9":["deleteBackground\r\rHa"],"10":["Note: You cannot sto"]}}