Choose Language Hide Translation Bar
Community Trekker

Graphics Scripts in a FrameBox

I've written a script that does some simulations and I have a window that appears letting the user know the progress of the simulation. Right now there's some text in the window and a blue rectangle in a GraphBox that fills up as it progresses. Currently,this is being done via:

fnw[FrameBox(1)] << Add Graphics Script({Fill Color("blue"),Rect(0,1,%,0,1)})

Where % is the percentage of completion. My issue is that this ends up with the window having thousands of scripts in it - is there a way to either update the current script or to at least delete the old one? Admitedly, there's no harm in what's being done right now, but I'd like to avoid the progress bar eating up too many resources.

Didn't display correctly.

Message was edited by: mewing
0 Kudos