TCursorTool

TCursorTool
Hierarchy     Properties     Methods     Events     

Unit
TeeTools

Description
Add and associate Cursors to individual Series or to be general to the Chart.
Cursors may be horizontal or vertical lines or both (Crosshair).

Cursor tools can be created at run-time using the following code:

procedure TForm1.Button1Click(Sender: TObject);
var MyCursor : TCursorTool;
begin
MyCursor:=TCursorTool.Create(Self);
MyCursor.ParentChart:=Chart1;
MyCursor.Series:=Series1;
end;

At runtime, Cursors can be dragged using the mouse, or moved by changing the Cursor XValue and YValue properties.

Cursors can be used to "Snap" to Series points. That is, the cursor will be positioned exactly at the position of the nearest point in the Series.

The Cursor FollowMouse property indicates that the Cursor will be moved automatically as the mouse passes over the area (chart) where the Cursor displays.

The Cursor Series property determines which axis will be used by the Cursor to calculate the screen positions. The Series axis are indicated by the Series HorizAxis and VertAxis properties.