Page 1 of 1

TChart bitmap recalculated when an icon is moved over.

Posted: Wed Aug 20, 2008 2:23 pm
by 14048359
Hello

I use TChart with some fast line and I have some refresh problem. Maybe you already have some solutions for this problem.
I have to display an icon (or bitmap) on top of your TChart. (We doesn’t have mouse on this platform, and I would like to move this magnifying glass icon to know where the user would like to zoom on the graphic). And when I move my icon, all the graphic is recalculate even if I never change any things on the graphic!

I try many things, there is some one:
- I use the Invalidate(Rectangle) of your graphic to catch the “AfterDraw()” to redraw only where my icon is, but the problem, all curve and axis are recalculated even if I specify a rectangle to invalidate.
- I Try also to move a small bitmap over the graphic, and at each time I moved my bitmap, all the graphic is recalculated and invalidated. I expected in this case that your graphic doesn’t recalculate each curve, just redraw the already calculated graphic bitmap because noting change in the graphic.

The expected solution will be that I can move an icon over the graphic and the graphic doesn’t recalculated all curve, only redraw the graphic already calculated.

I have some problem to explain my problem…. I hope you understand me enough to help me :)

Note: My software run on compact framework and the speed is very important.

Posted: Mon Aug 25, 2008 9:40 am
by narcis
Hi Qwerty,

You could try setting chart's AutoRepaint property to false. For magnifying glass effect you could use TeeChart's magnifying tool.

Hope this helps!