a canvas that does not refresh ?

Hi all,

I have a canvas (subclass) in a window, and items ( subclasses of group2d ) are drawn in the canvas.
I have a command that change the behavior the items are drawn in a contextual menu of the canvas
I call refresh, from the canvas, or even truewindow.refresh but the items does not get redrawn.
invalidate does the same
if I resize the window, or even minimize it, they do not get redrawn…

if I then click on my items, they are redrawn as I want
what did I miss not being able to redraw my items ?

thanks.

Canvas.invalide maybe on Window resize event

[quote=267271:@Jean-Yves Pochez]I call refresh, from the canvas, or even truewindow.refresh but the items does not get redrawn.
[/quote]
Call Invalidate or Refresh on the canvas instance, not on the window.

found !
in fact group2d keeps the curves it is composed of…
I had to remove all these curves before calling invalidate and everything is ok now.