Copying and Pasting Multiple Objects

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
PeterG
Posts: 168
Joined: Sat Jun 29, 2013 7:56 pm

Copying and Pasting Multiple Objects

Post by PeterG » Sat Mar 21, 2015 12:08 pm

I have noticed in the training videos how multiple objects are being copied, pasted and distributed efficiently and very rapidly. When I copy and paste, it get's positioned over the existing objects and then I have to select and drag them individually to their required positions after which select them and distribute the using align objects tool
Is there someone that can explain this to me.

Thanks
Peter G

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10102
Joined: Fri Feb 19, 2010 10:17 am

Re: Copying and Pasting Multiple Objects

Post by richmond62 » Sat Mar 21, 2015 12:17 pm

Probably the best way is to Group all the objects you want to copy, copy them,
paste them to the new card, and then ungroup them.

That way their positions will remain the same.

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

Re: Copying and Pasting Multiple Objects

Post by dunbarx » Sat Mar 21, 2015 10:49 pm

Hi.

I have not seen the videos.

Richmond makes a point, in that a group of objects can be treated as a single control. But is that what you wanted? Because simply selecting multiple objects, either with the edit tool or by script, works the same way without having to group, Can you give an example of what you want to happen when the copy/paste is finished?

Of course, you can do all this by script, and not have to lift a finger (after the coding, that is), but that all depends on how you answer the question.

Craig Newman

Post Reply