Page 1 of 1
How to share buttons and fields across cards
Posted: Sun Jul 15, 2018 9:51 pm
by tlottrike@gmail.com
I have just started my first attempt at making something that would be useful for me in Livecode. I want to create a a sort of Song Rolodex.
I have made a Stack and I have added some cards to it. On the first Card I have added the Navigation widget and some Fields. However when I go to the next or previous Card in the Stack the Navigation bar and the Fields are not visible.
I have been looking at the Property Inspector and fiddling with things there but no luck.
Am I misunderstanding how things behave in Livecode?
Re: How to share buttons and fields across cards
Posted: Sun Jul 15, 2018 10:41 pm
by bogs
Re: How to share buttons and fields across cards
Posted: Mon Jul 16, 2018 2:26 pm
by tlottrike
Thanks for that.
I'm not sure why, initially when I did what you described it didn't work but once I deleted the second card and made a new card it did work.
I have one further question but it is to do with scripting a Field so I will post it on the forum separately
Thanks again for your help
Re: How to share buttons and fields across cards
Posted: Mon Jul 16, 2018 3:44 pm
by bogs
Glad I could help
In the case where it did not work, if the 2nd card was already existing when you grouped the controls and set the shared property, they wouldn't be placed on it automatically, only on new cards going forward. I don't know if that is what happened with your case, but it is the only thing I can think of off the top of my head.
In any case, glad it is working now.
Re: How to share buttons and fields across cards
Posted: Mon Jul 16, 2018 4:37 pm
by dunbarx
Hi.
A group with backGroundBehavior set will be seen on all newly created cards. It will not, however, automatically appear on any pre-existing cards. You have two options:
1- Plan ahead, so that the group is created early. Then all new cards will be covered. I never do this.
2- Use the "place" command to add the group to any or all existing cards. This can be done under script control.
Craig Newman
Re: How to share buttons and fields across cards
Posted: Mon Jul 16, 2018 6:30 pm
by jacque
Groups can also be placed manually via the "place group" menu item.