principles of stack init

MisterX b.xavier at internet.lu
Tue Nov 23 00:50:20 EST 2004


you can trap the name of the window being closed...

on closestack
 if the short name of the defaultstack is among the lines of the substacks
of this stack then...
avoid checks
end if
end closestack

same for preopenstack...
 

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of thierry
> Sent: Tuesday, November 23, 2004 06:38
> To: How to use Revolution
> Subject: principles of stack init
> 
> Hi all,
> 
> 
> i have a stack with substacks used as modals.
> 
> the main stack has handlers PreOpenStack and CloseStack 
> respectively to init or reset the application.
> 
> but as i add these modal dialogs, they triggered the 
> Preopenstack and Closestack of the main stack too !
> 
> so , to quit a modal window, i use this:
> 
>         on mouseUp
>            lock messages
>            close this stack
>         end mouseUp
> 
> well, i don't like too much this way of doing..
> May be someone can give some others clues about how to Init 
> or Reset a mainstack but not when you open or close substacks ?
> 
> Best regards,   thierry
> 
> 
> _______________________________________________
> 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