ISeries.GetMousePoint
ISeries
function GetMousePoint: Integer;
Type Library
TeeChartx
Description
The GetMousePoint function returns the Series point index which is close to the mouse Screen coordinates. It returns -1 if there's no point close to the mouse cursor position.
Example [Visual Basic]:
This code displays the point Label text under the mouse cursor:
Private Sub TChart1_OnMouseDown(ByVal Button As TeeChart.EMouseButton, ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
Dim tmp As Integer
tmp = TChart1.Series(0).GetMousePoint
If tmp > -1 Then
MsgBox TChart1.Series(0).XValues.Value(tmp)
End If
End Sub