ITChart.OnDblClick
ITChart
property OnDblClick: TNotifyEvent;
Type Library
TeeChartx
Description
An OnDblClick event occurs whenever the user double clicks onto a Chart. The Sender parameter specifies the Chart class that originated the event.
The Series.GetMousePoint function returns the corresponding point under mouse cursor position. It returns -1 if no point is under mouse cursor. The Series.MouseValues property returns the mouse cursor X and Y position in Axis scales coordinates. The Series.XScreenToValue and Series.YScreenToValue functions convert from screen pixel coordinates to Series scales.
WARNING:
Use the Stopmouse method to control how the mouse button behaves with dual modes (scroll or zoom after the OnDblClick event)
Example [Visual Basic]:
Private Sub TChart1_OnDblClick()
MsgBox "You've double-clicked the Chart!!"
TChart1.StopMouse
End Sub