on deleteGroup
David Bovill
david at vaudevillecourt.tv
Fri Jan 1 14:45:57 EST 2010
Just noticed that the deleteGroup message is not sent when the group is
nested - anyone got an idea how to get around this?
Say you have a group that you want to do some tidying up if a user deletes
it - and so you put a handler like this in the group itself:
on deleteGroup
> beep
> doSomeTidying
> pass deleteGroup
> end deleteGroup
>
Which works fine if it is a toplevel group - but when this group is inside
another group deleting the toplevel group triggers a deleteGroup message
which travels up the hierarchy to the card - but no deleteGroup messages are
sent from the inner groups - this means you can't attach appropriate
behaviors to the groups.
Wandering if anyone has looked at this - I can't think how to do it as
deleteGroup is sent after deletion so even a frontscript would not be able
to tell what was inside a deleted group. Even the new closeControl message
does not seem to be sent in these circumstances?
More information about the use-livecode
mailing list