Page 1 of 1

How to reset chart?

Posted: Tue Apr 15, 2014 8:36 pm
by 16667970
Hi Yeray,
I am using colorgrid(Teechart activeX control 2013 in Vs with C#) on a window form. After I finish my first image,I try to paint my second image on the same window form.The size of the second image is different to the first,so I change the size of window form and colorgrid before I draw.On colorgrid I draw line and rectangle on canvas.But the second image still keeps the size of the first and pictures drawn on canvas stayed on their original position when I save them as JPG,but images can be shown on screen rightly.It seems that after I change the size of colorgrid, images shown on screen are different with the saved images as JPG.

I tried to every:
Teechart1.ClearChart();
Teechart1.Environment.InternetRepaint();
Teechart1.Repaint();
Teechart1.Refresh()
But they cannot solve my problem.So I must close the window and restart the window form if I change images.
Thanks,
Robinson

Re: How to reset chart?

Posted: Wed Apr 16, 2014 10:35 am
by yeray
Hello Robinson,

Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Please, read the "How to post in this forum" instructions below, in my signature.
Thanks in advance.

Re: How to reset chart?

Posted: Wed Apr 16, 2014 12:44 pm
by 16667970
Hi Yeray,
I give you a simple example.You click button1 first,then click button2,and click button1 again,you will find d:\test.jpg is different with the image on the screen.
Thanks,
Robinson

Re: How to reset chart?

Posted: Wed Apr 16, 2014 2:19 pm
by yeray
Hello Robinson,

I could reproduce the problem thanks to your example project so I've opened a ticket with the same:
http://bugs.teechart.net/show_bug.cgi?id=734
Feel free to add your mail to the CC list to be automatically notified when an update arrives.