Controls shared on different cards

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
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Controls shared on different cards

Post by abanowBUSTfGf » Sat Jan 05, 2013 3:14 am

I need to have five of objects each with the exact same properties, functions and scripts on 20 consecutive cards
but they should not appear on the first card. Can I do this? Thanks.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Controls shared on different cards

Post by Simon » Sat Jan 05, 2013 3:22 am

Sure, I take it you've grouped the controls? And set the "Behave like background" property?
You can select the group on card 1 then Object>Remove Group

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Re: Controls shared on different cards

Post by abanowBUSTfGf » Sat Jan 05, 2013 8:19 am

Many thanks Simon, it works for any new cards. Can I somehow use the group
on any existing cards?
Thanks again

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Controls shared on different cards

Post by Simon » Sat Jan 05, 2013 8:30 am

Just copy and paste.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Controls shared on different cards

Post by Klaus » Sat Jan 05, 2013 1:14 pm

Do NOT copy and paste, but "PLACE" these groups on all cards you need them!
Use a script:
...
place bg "name of group here" onto card X
...
Or use the menu in Livecode:
Object: Place group -> Name of gropup

Post Reply