Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 672

Getting Started with LiveCode - Experienced Developers • Exit to top?

$
0
0
Hello,

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
This substack displays an "Exit" button whose script is:

CODE:

on mouseUp   close this stack   put "Closing dialog..."   exit to topend mouseUp
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.

Statistics: Posted by Zax — Fri Aug 23, 2024 10:21 am



Viewing all articles
Browse latest Browse all 672

Trending Articles