LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on shutdownRequest
answer question "Are you sure you want to quit?" with "Yes" or "No"
if it is "Yes" then
send closecard to card 1 of stack "Sans titre"
pass shutdownRequest -- allow to quit
else
answer "we don't quit"
end if
end shutdownRequest
I just found that if I issue a Quit command from a button, the previous script does execute ! But if the user chooses Quit MyApp from the App menu, it does not. How do I trap this ??
I can try that but that would solve only half of the problem (on MacOS only).
For the other platforms, can I trap the "Quit" menuitem in my File menu button ?
I really would want to know why my handler doesn't catch the request.
Should I put this question in another topic of the forum ?