Clearing Canvas items on T-Chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
rperkins
Newbie
Newbie
Posts: 58
Joined: Wed May 26, 2004 4:00 am

Clearing Canvas items on T-Chart

Post by rperkins » Mon Dec 07, 2009 5:57 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Clearing Canvas items on T-Chart

Post by Narcís » Wed Dec 09, 2009 9:14 am

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();
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

rperkins
Newbie
Newbie
Posts: 58
Joined: Wed May 26, 2004 4:00 am

Re: Clearing Canvas items on T-Chart

Post by rperkins » Wed Dec 09, 2009 1:36 pm

Hello Narcís,
Thanks for the reply.
It worked.

Randy

Post Reply