Backgrounds

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
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Backgrounds

Post by jsburnett » Wed Feb 09, 2011 3:15 pm

I've used hypercard in the past.
With hypercard, even after cards were created in a stack, changes to a background such as adding a field or button or changing a script in one of them occurs - it occurs on all cards (newly created or not). However with LiveCode it only changes 'new' cards.
Does anyone have a work around?

Thanks

JSB

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Backgrounds

Post by Klaus » Wed Feb 09, 2011 3:43 pm

Hi JS,

well, LiveCode will behave the same as HyperCard did in this respect, adding/removing objects to already placed "backgrounds"
will be reflected on every card where this bg has been placed! So the culprit must anywhere else.

What exactly did you do?
Are you sure yo do not have two (almost) identical named backgrounds?


Best

Klaus

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Backgrounds

Post by BvG » Wed Feb 09, 2011 4:19 pm

Most likely you didn't place the background on the already existing cards. You need to do that, because unlike HyperCard, LiveCode can have several background, so there's additional management to do. So check out the "place" command out.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Re: Backgrounds

Post by jsburnett » Wed Feb 09, 2011 11:48 pm

Okay,
I checked it out and yea, it does do that.
I never used "set the editBackground of this stack to true" before.
Thanks.

JS

Post Reply