Page 1 of 1

Clearing Canvas items on T-Chart

Posted: Mon Dec 07, 2009 5:57 pm
by 9232632
Hello There,
I am using T-Chart version 707 for Builder 6.

I am trying to hide the items I display on the T-Chart using the Canvas.
For example, I am using TChart->Canvas->Line() function to draw a line on the chart and TChart->Canvas->TextOut() function to display some text on the chart. I am able to do this but I am not able to hide the text. I need to hide the line and the text depending on user's choice.

How can I do this?

Thanks for your help in advance.
Randy

Re: Clearing Canvas items on T-Chart

Posted: Wed Dec 09, 2009 9:14 am
by narcis
Hi Randy,

Try calling Draw() method for that so that it forces the chart being repainted and therefore cleaned, for example:

Code: Select all

Chart1->Draw();

Re: Clearing Canvas items on T-Chart

Posted: Wed Dec 09, 2009 1:36 pm
by 9232632
Hello NarcĂ­s,
Thanks for the reply.
It worked.

Randy