Clearing out rectangles

Karen Karen at curlypaws.com
Fri Dec 30 20:41:34 EST 2005


Hi,

I'm trying to draw a bar graph in Revolution using values from an  
array.  I use the following code, repeated for each bar, to draw the  
graph:

create invisible graphic
set the style of it to rectangle
set the opaque of it to true
set the rectangle of it to startY,tDrawX,tDrawY,startX
set the foregroundColor of it to "#000000"
set the backgroundColor of it to "#9198A0"
set the lineSize of it to 1
show it

This all works very well, but the next time I come to draw the graph,  
the old rectangles are still sitting there.  How can I get rid of them?

Thanks,

Karen





More information about the use-livecode mailing list