In LiveCode, usually you're asked to save a stack, even if you didn't
change it.
The reason is that the property that indicates that the stack has been
changed, is set to true when a field gets focus. A field gets focus
whenever a stacks comes to front. When a stack is closed, it needs to
I want to give the user a choice of whether to save changes before closing a
stack. To script this, I will handle the closeStackRequest message, and find a
way to keep track of whether the stack in question has been changed since it
was last saved.
What I am trying to figure out is under what