Images on Canvas disappear after repaint

TeeChart for ActiveX, COM and ASP
Post Reply
AHIS
Newbie
Newbie
Posts: 19
Joined: Wed Feb 22, 2006 12:00 am
Location: Austria

Images on Canvas disappear after repaint

Post by AHIS » Thu Feb 23, 2006 12:42 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 27, 2006 1:33 pm

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

Post Reply