Place Group

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
chelling
Posts: 100
Joined: Tue Mar 06, 2007 3:14 am

Place Group

Post by chelling » Sat Feb 03, 2018 4:22 pm

I tried to place a group onto a card with both of these scripts and it didn't work. The group "Behave like a background" property is true. Why wouldn't these work? I am using Mac 10.12.6 and LiveCode Business 8.1.6. I went ahead and placed them manually but am curious.

place group "NavBarGroup" onto this card

Put the short name of this card into tCard
place group "NavBarGroup" onto card tCard

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Place Group

Post by jmburnod » Sat Feb 03, 2018 5:25 pm

Hi,
I suppose that your group is in an other cd.
You have to precise it

Code: Select all

place group "MyGroup" of cd "CdWhereIsTheGroup" onto this cd
Best regards
Jean-Marc
https://alternatic.ch

chelling
Posts: 100
Joined: Tue Mar 06, 2007 3:14 am

Re: Place Group

Post by chelling » Sat Feb 03, 2018 5:33 pm

That was it. Thanks!

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

Re: Place Group

Post by Klaus » Sat Feb 03, 2018 5:33 pm

Or:
...
place background "NavBarGroup" onto this card
...
:D

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

Re: Place Group

Post by dunbarx » Sat Feb 03, 2018 5:48 pm

Cannot let this pass. Klaus makes a subtle and powerful point.

By referring to your group as a "backGround", LC examines the entire stack for such an object, and one need not explicitly find the full "pathname" to the group of interest.

Jean-Marc is correct if you do not use that method.

It is useful to know how both work.

Craig Newman

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Place Group

Post by bogs » Sat Feb 03, 2018 7:08 pm

<Taking notes, as I was not aware of that> Thanks Klaus!
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Place Group

Post by jmburnod » Sat Feb 03, 2018 7:19 pm

Jean-Marc is correct if you do not use that method.
Yes, but Klaus's way is better, no need to have the background in a cd
https://alternatic.ch

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”