principles of stack init
Sarah Reichelt
sarahr at genesearch.com.au
Tue Nov 23 00:49:21 EST 2004
2 solutions: either move the mainStack's init handlers to the card
script of it's first card (best if it only has one card), or put a test
for the stack name before running the handler e.g.
on preOpenStack
if the short name of this stack = "My Main Stack" then
-- do init stuff
end if
end preOpenStack
Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/
On 23 Nov 2004, at 3:42 pm, thierry wrote:
> 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
More information about the use-livecode
mailing list