Quit and shutdownRequest
Posted: Thu Oct 04, 2012 8:21 pm
Hi All,
To quit my app the user must click two times on a btw "quit".
I added a "shutdownRequest" but that is the same behavior.
What is the trick ?
To quit my app the user must click two times on a btw "quit".
I added a "shutdownRequest" but that is the same behavior.
What is the trick ?
Code: Select all
on debQuitter
ExpCurJoueur
ExpPref
wait 1 milliseconds
--lock messages
quit
if it is "Yes" then
quit
end if
end debQuitter
on shutdownRequest
answer question "Are you sure you want to quit?" with "Yes" or "No"
if it is "Yes" then pass shutdownRequest
end shutdownRequest
on ExpCurJoueur
put "DernierJoueur.txt" into tFile
put unPathDansNec2() & tFile into tPath
put gLecurJoueur into url("file:" & tPath)
end ExpCurJoueur
on ExpPref
put UnPathDansNec2(UnInscrit) & gLeCurjoueur & "/" & "Prefs.txt" into tpathFi
put gLesCurPrefStack into url ("file:"&tpathFi)
end ExpPref