shutdownrequest

Thierry Arbellot thierry.arbellot at wanadoo.fr
Tue Oct 12 15:42:45 EDT 2004


On Tuesday, Oct 12, 2004, at 20:44 Europe/Paris, 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...
>
> Greetings.
>
> Yves COPPE
> yvescoppe at skynet.be
>

Yves,

Are the substacks and the main stack in the same stack file ?
If not, you should put a shutdownRequest handler in each stack file.

Thierry



More information about the use-livecode mailing list