Editing doesn't copy to all 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
Maxiogee
Posts: 38
Joined: Thu May 05, 2011 5:45 pm

Editing doesn't copy to all cards.

Post by Maxiogee » Wed Nov 09, 2011 1:09 pm

This is probably newbie question mark 1!

I have a stack with many cards. All but one of them are identical cards but with different data in some of the fields.

I want to edit the script of a button in the group, but the amended script doesn't carry over to all the other cards.
In HC this would be a background button, and the dictionary tells me to establish a group to achieve that in LiveCode. I did this, including all buttons and fields in the group. However, it's not the same. Editing on one card is only effective on that card.
What am I doing wrong?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Editing doesn't copy to all cards.

Post by Mark » Wed Nov 09, 2011 2:03 pm

Hi,

What exactly did you do to put that group on all cards? Probably, you made a mistake there.

Once you have created a group, you can choose the group from the Place submenu in the Objects menu. You can also set the backgroundBehavior of the group to true.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Maxiogee
Posts: 38
Joined: Thu May 05, 2011 5:45 pm

Re: Editing doesn't copy to all cards.

Post by Maxiogee » Wed Nov 09, 2011 2:19 pm

I selected all the controls and formed a group.
Not finding any "Copy Card"/"Paste Card" menuitems I wrote a button script to automate "copy this card" and then "paste" - 700+ times.

Now I need to edit the script of one of the buttons.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Editing doesn't copy to all cards.

Post by Mark » Wed Nov 09, 2011 2:25 pm

Hi,

If you create a new card, the group gets duplicated. Instead, you should create a new card and place the group. You can automate this with the place command. Read more about the place command in the dictionary.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Maxiogee
Posts: 38
Joined: Thu May 05, 2011 5:45 pm

Re: Editing doesn't copy to all cards.

Post by Maxiogee » Thu Nov 10, 2011 4:00 pm

Thanks Mark.

I think - fingers crossed - that I've got it working as I'd like it to.

Tony McCoy O'Grady

Post Reply