Print

Print


Hi Sean, thanks for answering.

I'm sorry for not being more explicit, this is happening with objects
that have been stopped and removed from the field, a SparseGrid in
this case. So I believe they are not in the physical world any more.

Luís

On 1 January 2001 07:44, Sean Luke <[log in to unmask]> wrote:
>
> In fact, even after the simulation has *ended*, as long as you have objects present in the physical world, whenever the window is resized or certain other GUI events occur, the draw() method may *still* be called to redraw them.
>
> You should *always* redraw your objects.  If you don't want them drawn, remove them from your field.  If you'd like them to draw themselves with some default color indicating that they're "stopped", you could do that.
>
> Sean