Moving objects between stacks

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

Moving objects between stacks

Post by petero » Wed Nov 14, 2007 9:53 pm

I would like to be able to drag an object fromm a palette onto another stack and leave a copy of the object there. (while in RUN mode)

That is, I'd like to do the same thing Revolution does when you create a new field.

What transcript commands should I be looking at?

Thanks in advance.

Peter

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Wed Nov 14, 2007 10:30 pm

Check out the "create" command in the documents. Use that to create a new control on the other stack.

Also, maybe check into the "template*******" command, which is listed such as "templatebutton" in the documents. It allows you to setup a template for each of the controls to your desired specs before you use the "create" command to create the control.

I don't have any examples handy at the moment, but I've used these before and had no problems.

Post Reply