Demo Show Stopper - Save File Dialog

David Burgun dburgun at dsl.pipex.com
Mon Apr 26 09:05:21 EDT 2004


>>Hi All,
>>
>>I need to get this working for a demo tomorrow and, as Murphys Law 
>>Predicts, the one Stack I have the Save problem with is the one 
>>that everyones will be looking at with a magnifying glass!
>>
>>I tried everything I can think of to rid myself of this message 
>>dialog. I have set "destroyStack" to true, I have sereral other 
>>stacks that are basically the same as the one in question but do 
>>not put up the "do you want to save" dialog and can see no real 
>>difference between the ones that don't and the *one* that does!
>>
>>I can the Stack files if this would be of help.
>>
>>RIght now, I just don't know where to even start looking for how to 
>>fix this problem, any ideas would really be helpful. I really don't 
>>want to have to answer the question "Why does this window produce a 
>>Save FIle Dialog?", because the only answer I can give is "I don't 
>>know". Also the question "Can you stop it from appearing?" would be 
>>quite bad too, since the answer to this would be "no and nor does 
>>anyone else".
>>
>>It would just make RunRev look really bad as a development tool.
>>
>>Thanks a lot
>>Dave
>
>And saving the stack shortly before closing it (but not in the 
>closestack or closestackrequest) does not work?

Not sure what you mean by "but not in the closestack or 
closestackrequest". The stack scripts are as follows:

on preOpenStack
set the destroyStack of this stack to true
set the CustomSaveStackFlag of this stack to true

pass preOpenStack
end preOpenStack

on closeStack
if theCustomSaveStackFlag of this stack is true
     save this stack
end if

pass closeStack
end closeStack

This is basically the same as the other stacks that do not display 
the dialog. I am not sure where to put the "save this stack" if not 
in the closeStack handler. I want the Stack to be saved just before 
it is closed.


Here's what I do to show the problem:

Open the Stack in the IDE, Save It and close it.
Select "Browser" Mode in the IDE.
Run the Dummy Stack that has the Menubar and Menu handlers.
Select a Stack that does not exhibit this problem (via the Menubar).
Press buttons etc in the Stack and press Close Box (Button at 
top/left of window on MacOS) - Stack closes no problem.
Select the Stack that does exhibit this problem (via the Menubar).
Press Close Box (Button at top/left of window on MacOS) - I get the 
"Do you want to save this stack?" dialog.

Any Ideas?

Thanks a lot
All the Best
Dave


More information about the use-livecode mailing list