How to reset chart?
Posted: Tue Apr 15, 2014 8:36 pm
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
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