Steema.TeeChart.Tools.NearestPoint Change event doesn't trigger

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TLC
Newbie
Newbie
Posts: 61
Joined: Mon Apr 08, 2019 12:00 am

Steema.TeeChart.Tools.NearestPoint Change event doesn't trigger

Post by TLC » Tue Oct 29, 2024 6:59 pm

Steema.TeeChart.Tools.NearestPoint Change event doesn't trigger because the kind parameter is never MouseEventKinds.Move. I clicked and dragged on the chart but it never triggered. Only the down and up events fired.

Code: Select all

    protected internal override void MouseEvent( MouseEventKinds kind, MouseEventArgs e, ref Cursor c)
    {
      if (kind != MouseEventKinds.Move || this._iSeries == null)
        return;
Also please change the Change event signature from

Code: Select all

    public event EventHandler Change;
to

Code: Select all

    public event EventHandler<int> Change;
or

Code: Select all

    public event Action<int> Change;
where the int parameter is the current point index.
Visual Studio 2022 versions.7z
(2.83 KiB) Downloaded 1 time

Post Reply