Thanks Phil. As mentioned, I haven't really played with backgrounds very much so this may be a stupid question but why would you want to have a background that doesn't appear on any card? I can see that might happen inadvertently when backgrounds get deleted but is there a practical use for unplaced backgrounds?
Pete On Tue, Jan 22, 2013 at 11:02 AM, Phil Davis <[email protected]> wrote: > Nope. But you can detect them like so: > > repeat with x = 1 to (the number of backgrounds in this stack) > if the number of cards in bg x of this stack = 0 then -- it isn't > placed > place bg x of this stack onto this cd > getControlInfoFromHiddenBg x > remove bg x of this stack from this cd > end if > end repeat > Pete lcSQL Software <http://www.lcsql.com> _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
