templatestack

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

templatestack

Post by Da_Elf » Sat Sep 20, 2014 7:34 pm

Ive created a substack that i want to use as a template when creating new stacks. Ive looked in the dictionary and on google but the use of templatestack is very mysterious

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: templatestack

Post by Da_Elf » Sat Sep 20, 2014 9:38 pm

never mind. was as simple as using the clone command

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: templatestack

Post by dunbarx » Sun Sep 21, 2014 1:37 am

However you solve a problem in LC is perfectly valid. But there should be no mystery to using the templateStack. When you have your subStack just the way you want it, simply say;

set the ID of the templateStack to the ID of stack "yourSubStack"

This setting does not, I believe, survive sessions. But you can always save the properties of your substack in a custom property, and call it later when required, since custom properties do survive sessions.

Craig Newman

Post Reply