quiting and close stack message
admin at FlexibleLearning.com
Wed Dec 8 16:27:29 EST 2010
As I said, 'quit' is non-negotiable. Trap a closeStackRequest in the main
stack's card script and offer the option to abort...
--| Main stack, card script
--| Main stack, stack script
answer "Are you sure you want to quit?" with "Yes" or "No"
if it="Yes" then quit
You can use the same handler in your File menu...
on menuPick which
if which="Quit" then checkQuit
and in your shortcuts handler thus...
on commandKeyDown pKey
if pKey="Q" then checkQuit
Hi Hugh. CloseStackRequest does not prevent quitting in the IDE. It appears
nothing does. I suspect however that it would work in a standalone. I will
test that shortly.
On Dec 8, 2010, at 11:25 AM, FlexibleLearning wrote:
> 'quit' cannot be terminated once issued. See 'closeStackRequest' instead
> Hugh Senior
> How do you get an answer dialogue to halt the quit process? If you have a
> "close stack" handler and it has a "do you really want to quit?" dialogue
> and you quit the livecode application you see that answer message flash
> a second but it doesn't halt the quit process.
More information about the Use-livecode