Hello,
I have a substack that serves as a modal dialog. I call it with script like:This substack displays an "Exit" button whose script is:The problem is that if I click on the "Exit" button of the substack in modal mode, the rest of the calling code is executed (the msg box contains "Closing dialog... Dialog closed!").
Of course, I could use the dialogData to test the clicked button but I thought that the "exit to top" command stopped all scripts.
I have a substack that serves as a modal dialog. I call it with script like:
CODE:
modal stack "mySubstack"put " Dialog closed!" after msg
CODE:
on mouseUp close this stack put "Closing dialog..." exit to topend mouseUp
Of course, I could use the dialogData to test the clicked button but I thought that the "exit to top" command stopped all scripts.
Statistics: Posted by Zax — Fri Aug 23, 2024 10:21 am