Page 1 of 1

TChartImageTool

Posted: Fri Mar 06, 2009 8:12 am
by 10550286
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);

Posted: Fri Mar 06, 2009 9:37 am
by yeray
Hi Sam,

I think you should use this:

Code: Select all

Chart1.Axes.Behind := false;

Posted: Mon Mar 09, 2009 12:05 am
by 10550286
Thanks for your help.