Page 1 of 1

TeeChart Cursor Tool

Posted: Thu Jan 28, 2010 7:15 pm
by 8464885
Is there a way to read the position of the Cursor Tool as it is moved across the chart? I would like to have two vertical cursors and read the X-Axis position of each of these cursors.

Re: TeeChart Cursor Tool

Posted: Fri Jan 29, 2010 9:11 am
by yeray
Hi rsites,

You should use TCursorTool OnChange event:

Code: Select all

procedure TForm1.ChartTool1Change(Sender: TCursorTool; x, y: Integer;
  const XValue, YValue: Double; Series: TChartSeries; ValueIndex: Integer);
begin
  Caption:='X: '+IntToStr(x)+' Y: '+IntToStr(y);
end;

Re: TeeChart Cursor Tool

Posted: Fri Jan 29, 2010 1:16 pm
by 8464885
Thanks. Works great.