TChartImageTool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sam F
Newbie
Newbie
Posts: 45
Joined: Wed Sep 10, 2008 12:00 am

TChartImageTool

Post by Sam F » Fri Mar 06, 2009 8:12 am

I am using the TChartImageTool to paint a section of the background, but it would be useful to have the dashed increment lines of the axes painting over the top of the image as well. Is there some simple way to have that?
My code slice for adding an image is below, if that is useful at all. I theorised that I might have to utilise one of the OnBeforeDraw events.

Code: Select all

 TChartImageTool* Image = new TChartImageTool(m_pPlanChart);
  Image->ParentChart = m_pPlanChart;
  Image->Picture = thisPicture;
  Image->Series = thisPointSeries;
  m_pPlanChart->Tools->Add(Image);

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Mar 06, 2009 9:37 am

Hi Sam,

I think you should use this:

Code: Select all

Chart1.Axes.Behind := false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Sam F
Newbie
Newbie
Posts: 45
Joined: Wed Sep 10, 2008 12:00 am

Post by Sam F » Mon Mar 09, 2009 12:05 am

Thanks for your help.

Post Reply