Page 1 of 1

TColorLineTool

Posted: Tue Jan 20, 2009 5:17 am
by 10550286
I'm using TeeChart Pro 8.02.

When I use the TColorLineTool to make a horizontal line, if I drag the chart, the horizontal line does not clip inside the vertical boundaries. Is this a bug? Or is this a setting somehow?

Thanks,
Sam.

Posted: Tue Jan 20, 2009 8:25 am
by narcis
Hi Sam,

Have you tried setting NoLimitDrag to false?

Code: Select all

  ChartTool1.NoLimitDrag:=false;

Posted: Wed Jan 21, 2009 12:15 am
by 10550286
I have now. To no effect. I am basically trying to make clear the zero location on the graph - and do similar things with other graphs. If it weren't for this clipping issue, it would be working well.

Code: Select all

  TColorLineTool *thisColorLine;
  thisColorLine = new TColorLineTool(m_pDecayChart);
  thisColorLine->Value = 0;
  thisColorLine->Axis = m_pDecayChart->LeftAxis;
  thisColorLine->AllowDrag = false;
  thisColorLine->DrawBehind = true;
  thisColorLine->Pen->Style = psDash;
  thisColorLine->NoLimitDrag = false;
  m_pDecayChart->Tools->Add(thisColorLine);