Page 1 of 1

Cloning Substack in Other Stack

Posted: Tue Jun 27, 2017 7:49 pm
by mrcoollion
I have the following issue.

I made a new Calendar Pane because I found the CalendarPane i downloaded (http://www.rotundasoftware.com/livecode ... arPane.php) to hard to mold into what I wanted to do with it.
My version is a substack and has all sorts of possibilities and even for a low level developer as me is easy to work with so I though. Why not share it on this forum.

My problem is that when i want to clone this substack and place it under a new mainstack all sorts of things are wrong.
The complete layout e.g.

Any way to easy clone a substack to another mainstack or am i doing anything wrong.

I use

Code: Select all

clone stack "myStack"
Regards,

Paul

Re: Cloning Substack in Other Stack

Posted: Tue Jun 27, 2017 8:25 pm
by mrcoollion
Found out that if I use

Code: Select all

clone stack "NameOfOriginalSubstack" as "NameOfNewSubstack"
in the MessageBox window al goes as expected.

Regards,

Paul

Re: Cloning Substack in Other Stack

Posted: Tue Jun 27, 2017 10:50 pm
by dunbarx
Not sure what you mean, but know that the mainstack of a stack is a property of that stack, and can be set to any stack. See the dictionary, because changing a mainstack may change the file to which it belonged.

Craig Newman

Re: Cloning Substack in Other Stack

Posted: Wed Jun 28, 2017 8:53 pm
by mrcoollion
Hi Craig,

I got it working without a problem..

Code: Select all

clone stack "DemoFlexCalendar" as tNewCalendarStackName
works fine.

I used this to make a flexible calendar pane which i will post in a new post for all to use, improve and maybe someone can make a widget of it?

Thanks....