[SOLVED] Converting in a background

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
MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

[SOLVED] Converting in a background

Post by MaxV » Tue Jan 15, 2019 5:10 pm

Hi,
I have a stack with many cards. Now field 1 of card 1 has to become a background object of all cards.
My problem is: how to do?
If I change the property of a group to act as a background, it is automatically copied in new card as a backgroud.
On the contrary copying background on new cards doesn't work.
Last edited by MaxV on Fri Jan 18, 2019 3:32 pm, edited 1 time in total.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Converting in a background

Post by Klaus » Tue Jan 15, 2019 5:52 pm

Hi Max,

simply GROUP your single field and PLACE that new group onto every card you need.
Or am I missing something?

Best

Klaus

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: Converting in a background

Post by quailcreek » Wed Jan 16, 2019 9:31 pm

Also be aware that the fld property "Shared Text" with control wether the text in the fld is the same in all of the groups. Also note the Klaus specifically said place the group on each cd. Place is under the Object menu > Place Group. It's also a good practice to name your groups when doing this.
Tom
MacBook Pro OS Mojave 10.14

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Converting in a background

Post by dunbarx » Fri Jan 18, 2019 2:44 pm

What everyone said.

But if you have many cards, you will want to write a short handler that loops through each card, placing the group as it goes.

Craig Newman.

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

[SOLVED] Re: Converting in a background

Post by MaxV » Fri Jan 18, 2019 3:32 pm

Wow, PLACE should be in right click menu, I didn't find it.
Thank you all
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: [SOLVED] Converting in a background

Post by dunbarx » Fri Jan 18, 2019 11:13 pm

Max

I too wish someone would give me a list of native words that I both should know and need to know. But these generally come when I am in a situation like yours. That is the power of this forum; somebody will know.

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”