How to clone invisible a stack?

René Micout rene.micout at numericable.com
Fri Mar 29 05:41:07 EDT 2013


Have you explored the custom property solutions ?

Le 29 mars 2013 à 10:30, André Bisseret <andre.bisseret at wanadoo.fr> a écrit :

> Bonjour,
> 
> I have a main stack (say mainStack1" of which one substack is a model stack, say stack "stackModel"
> 
> On an another main stack, I have a button with a mouseUp handler that creates a new stack by cloning the model stack.
> 
> When I clone invisible stack "stackModel", that create a stack "copy of stackModel", as expected. 
> I rename it.
> My problem is that I can't do that invisibly: the clone "Copy of stackModel" is always visible for a while!
> 
> that keeps being so, despite the fact that I lock screen.
> 
> Trying to set the visible of stack "stackModel" to false before cloning does not help
> 
> Below is the involved part of my handler:
> --------------
> lock screen
> ---
> ---
> set the visible of stack "stackModel" of stack "mainStack1" to false -- not better 
> clone invisible stack "stackModel" of stack "mainStack1"
> set the name of it to tNewDoc
> --
> --
> save stack tNewDoc as "bli/bla/blo/tNewDoc
> close stack tNewDoc
> ---------
> 
> Any idea on what I am missing?
> 
> Thanks a lot in advance for your help
> 
> Best regards from Grenoble
> 
> André
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list