shutdownrequest
Mark Talluto
userev at canelasoftware.com
Tue Oct 12 15:23:31 EDT 2004
On Oct 12, 2004, at 11:44 AM, Yves COPPE wrote:
> Hi list
>
>>
>> I put in the file menu:
>>
>> case "Quit [name of app]"
>> quit
>> break
>>
>>
>>
>> I put in the file menu:
>>
>> case "Quit [name of app]"
>> quit
>> break
>>
>>
>> At the mainstack level:
>>
>> on closeStackRequest
>> quit
>> end closeStackRequest
>>
>>
>> on shutDownRequest
>> answer "Are you sure you want to quit [name of app]?" with "No" or
>> "Yes"
>> if it is "Yes" then
>> pass shutDownRequest
>> else
>> exit to top
>> end if
>> end shutDownRequest
>>
>>
>> I use this for all platforms and it works like a charm!
>>
>>
>
> thanks to Mark and Thierry but it definitively doesn't work for me...
>
> I've tried many ways, but it's not as expected
> for example if I launch the app and immediately quit, no
> shutdownrequest is sent...
>
Are you sure you do not have anything else trying to trap the quitting
of the stack? I do not have any projects that make use of start
using... so this may be the issue that I am not getting.
--
Best regards,
Mark Talluto
http://www.canelasoftware.com
More information about the use-livecode
mailing list