Hiding all the graphics on a card?

J. Landman Gay jacque at hyperactivesw.com
Sat Jan 17 21:47:02 EST 2004


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.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list