How do I close a Stack (Window)

David Burgun dburgun at dsl.pipex.com
Thu Apr 8 14:10:44 EDT 2004


More on this.

I have the Main Stack on the second screen and I press the button. 
The new stack appears on the main screen and it active for a short 
while, then it goes inactive and the Main Stack goes active again!

What am I doing wrong?

Thanks for your help
Dave


>Hi,
>
>That worked fine for the Splash Screen (once I realized that I had 
>to Close it Manually to get it to re-open and do it's stuff - This 
>is where RunRev REALLY gets me! Although I am getting used to it 
>now).
>
>I have one more question on this though. I have a button that needs 
>to call a Stack (dialog), I have the following script on the button:
>
>on mouseUp
>go StackPageSize
>end mouseUp
>
>Which calls the stack ok, but it doesn't become the frontmost 
>window. Well maybe it does sometimes, not sure, still playing. Is 
>there something else I need to do to make it be the active window?
>
>Cheers
>Dave
>
>>Hi David,
>>
>>>Hi,
>>>
>>>I have setup my RunRev project so that I have a main stack which
>>>just acts as a Splash Screen and does some initialization, once it's
>>>been on the screen for 2 seconds, I want it to go away.
>>>Should I hide it or close it? How do I do this?
>>
>>Well, that's a matter of taste :-)
>>
>>I, personally, hide my splash-screens most of the time...
>>
>>And, as you might have guessed:
>>
>>hide stck "xyz"
>>resp.
>>close stack "xyz"
>>
>>will do the job ;-)
>>
>>Something like this in your splash screen stack:
>>
>>on openstack
>>   wait 2 secs
>>   toplevel "The menu stack or whatever..."
>>   close stack "name of splah screen here..."
>>   ## close this stack won't work, since "The menu..."
>>   ## in now THIS stack...
>>   ## Have been fooled before by this ;-)
>>end openstack
>>
>>>I also have a couple of Sub-Stacks that I want to display, have the user
>>>fill in some details (like a dialog box) and then close, again how 
>>>do I do this?
>>
>>Add a "Cancel" and "OK" button to your dialogs with a "close this 
>>stack" etc...
>>handler and open these stacks as modal:
>>
>>...
>>modal "my very special dialog box"
>>...
>>
>>Hope this helps..
>>
>>>Cheers
>>>Dave
>>
>>Regards
>>
>>Klaus Major
>>klaus at major-k.de
>>www.major-k.de
>>
>>_______________________________________________
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list