Page 1 of 1

Images on Canvas disappear after repaint

Posted: Thu Feb 23, 2006 12:42 pm
by 9530384
Hi Folks.

I'm using the Canvas to place multiple different Pictures on the TChart. The method Canvas.StretchDraw works good for me. But as soon as you move some other window over the window with the TChart Microsoft (I think) causes the TChart to repaint and the Canvas-Images are gone! The OnAfterDraw-trigger isnt fired at all...
So what can I do, because no other method allows me to display correctly stretched images in TChart???

Thanks,

Harry

Posted: Mon Feb 27, 2006 1:33 pm
by Pep
Hi Harry,

I cannot reproduce it here, I've tried to put some windows over the TChart form window which contains a image added using the StretchDraw method and it's not removed. How can I reproduce it ?

In any case it you were able to know when the window loses the Focus you could call to repaint the tChart using :
tChart1.Environment.InternalRepaint