Let's say you deleted the last card a background has been placed on. Would you want your background to then also be deleted? Some might, but a great many would not. It may be a quite complex group that took you days to get right. To have it inadvertently deleted by deleting the last card it was on (and probably no undo either) would be heartbreaking.
Bob On Jan 22, 2013, at 12:02 PM, Peter Haworth wrote: > 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 <rev...@pdslabs.net> 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 > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode