Hiding all the graphics on a card?

Doug Lerner doug at webcrossing.com
Sat Jan 17 21:49:57 EST 2004


On 1/18/04 11:47 AM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:

> On 1/17/04 8:00 PM, Doug Lerner wrote:
> 
>> I know I can loop through and set each graphic object's visible to false,
>> but I was just wondering if there was a better way.
>> 
>> Or - is there a way to double-buffer a window so I can do this in a
>> background and then switch the visible buffer?
> 
> The "lock screen" command:
> 
> lock screen
> repeat with x = 1 to the number of grcs
> set the visible of grc x to false
> end repeat
> unlock screen
> 
> This allows only one screen redraw. Unless you have a huge number of
> graphics on the card, it is very fast.
>

Very useful. Thanks.

doug



More information about the use-livecode mailing list