Place Group
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Place Group
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
place group "NavBarGroup" onto this card
Put the short name of this card into tCard
place group "NavBarGroup" onto card tCard
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Place Group
Hi,
I suppose that your group is in an other cd.
You have to precise it
Best regards
Jean-Marc
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
Jean-Marc
https://alternatic.ch
Re: Place Group
Or:
...
place background "NavBarGroup" onto this card
...
...
place background "NavBarGroup" onto this card
...
-
- VIP Livecode Opensource Backer
- Posts: 9567
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Place Group
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
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
Re: Place Group
<Taking notes, as I was not aware of that> Thanks Klaus!
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Place Group
Yes, but Klaus's way is better, no need to have the background in a cdJean-Marc is correct if you do not use that method.
https://alternatic.ch