How to clone invisible a stack?

André Bisseret andre.bisseret at wanadoo.fr
Tue Apr 2 13:38:27 EDT 2013


René,

Starting from your solution, I am learning a lot about custom properties :-)

Up to now, I was not using CP, except to keep some simple words or phrases (names or such things).

Thanks to you I discovered that it was possible to keep even a complete stack as a property of another one
amazing (for me)
In a stack I built for trials, all is working as expected : I can easily create invisibly duplicates of the model (set as a CP)

But when doing the same in the stack of the app I am developing, I still have a problem; 
when I script:
go invisible to stack the cpModel of stack "stMain"
it is opened but visible!!!
Sure I will find what I am doing wrong.

Merci encore René
Je vais surement adopter plus souvent les "custom properties"

Amitiés

André


Le 29 mars 2013 à 11:54, René Micout a écrit :

> 
> Le 29 mars 2013 à 11:22, André Bisseret <andre.bisseret at wanadoo.fr> a écrit :
> 
>> René, I did not explore the custom property solutions
>> Pourriez-vous m'esquisser comment utiliser une "custom property" ? (How could I use custom property?)
>> Seulement si vous avez le temps !
> 
> This involves integrating the stack "model" (B) in a custom property contained in the stack (A).
> 
> RUN THIS SCRIPT FROM THE MESSAGE BOX:
> 
> set the cpNomCustomProp of stack id 1020 to url "binFile:/full path/stkModèle"
> 
> cpNomCustomProp = instance name of the custom property containing the stack model B (to adapt)
> id = 1020 id example of stack A (to adapt) which is contained in the custom property (the stack model B)
> url = to adapt to the individual case, it is the stack model B
> line above script stored as customprop the stack model B as a basis for the creation of the duplicate model stack when called from stack A ...
> You will have only one stack (A), the stack model integral part of the stack A
> 
> Cela consiste à intégrer le stack "modèle" (B) dans une custom property contenue dans le stack (A).
> 
> LANCER CE SCRIPT DEPUIS LA MESSAGE BOX :
> 
> set the cpNomCustomProp of stack id 1020 to url "binFile:/Chemin d'accès complet/stkModèle"
> 
> cpNomCustomProp = exemple de nom de la custom property contenant le stack modèle B (à personnaliser)
> id 1020 = exemple d'id du stack A (à adapter) dans lequel est contenu la custom property (le stack modèle B)
> url = à adapter selon les cas, il s'agit du stack modèle B
> la ligne de script ci-dessus stocke sous forme de customprop le stack modèle B qui servira de base à la création du duplicata du stack modèle lors de son appel depuis le stack A …
> Vous n'aurez donc plus qu'un stack (A), le stack modèle faisant partie intégrante du stack A
> 
> _______________________________________________
> 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