Background objects

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Background objects

Post by Andycal » Fri Oct 15, 2010 4:35 pm

Just having some fun with a background group. I grouped up a bunch of controls, one is a field and set them to behave as a background object. All worked fine as I added cards etc. then I realised I needed to add in another field, did that and then my original group was removed and replaced with this new one.

So, do I now have to add the group to all the other cards? And in doing so, will it stop behaving as a group? For example, I want to update one of the fields on there, but will I now have to do that for each group on each card.

I'm a bit confused on this functionality and how groups should work. Any pointers would be a boon.

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Background objects

Post by WaltBrown » Fri Oct 15, 2010 4:43 pm

Andycal,
I just tried it out. I made a stack with a group that I set to Background Behavior. I added a number of new cards. Then I edited the group, dragged in a new field, and closed the group. The new field appeared on all existing cards.
Walt
Walt Brown
Omnis traductor traditor

Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Re: Background objects

Post by Andycal » Fri Oct 15, 2010 4:44 pm

WaltBrown wrote:Andycal,
I just tried it out. I made a stack with a group that I set to Background Behavior. I added a number of new cards. Then I edited the group, dragged in a new field, and closed the group. The new field appeared on all existing cards.
Walt
Hmm. So maybe I've made an almighty cock-up somewhere. If you delete the group, then add a new group and set that to background, does it appear on all cards?

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Background objects

Post by WaltBrown » Fri Oct 15, 2010 4:50 pm

It does not appear to. I tried, made an empty stack with 4 cards, created a group, set background behavior, and it did NOT appear on the previous cards. I don't know if there is a way to do it beyond pasting it back into all previous cards.
Walt
Walt Brown
Omnis traductor traditor

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: Background objects

Post by Janschenkel » Sun Oct 17, 2010 9:18 am

The new background group is only automatically added to new cards - but you can 'place' it on the older cards (check out the 'Place group' submenu of the 'Object' menu)

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Re: Background objects

Post by Andycal » Sun Oct 17, 2010 9:47 am

Sorted now. It was a mixture of problems confounded by the fact I really didn't 'get' groups. Thanks guys, I 'get' it now!

Post Reply