Controls in a stack

Robert Sneidar slylabs13 at
Tue Jan 22 16:14:39 EST 2013

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. 


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 <revdev at> 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 <>
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list