Page 1 of 1

Editing doesn't copy to all cards.

Posted: Wed Nov 09, 2011 1:09 pm
by Maxiogee
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?

Re: Editing doesn't copy to all cards.

Posted: Wed Nov 09, 2011 2:03 pm
by Mark
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

Re: Editing doesn't copy to all cards.

Posted: Wed Nov 09, 2011 2:19 pm
by Maxiogee
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.

Re: Editing doesn't copy to all cards.

Posted: Wed Nov 09, 2011 2:25 pm
by Mark
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

Re: Editing doesn't copy to all cards.

Posted: Thu Nov 10, 2011 4:00 pm
by Maxiogee
Thanks Mark.

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

Tony McCoy O'Grady