OnGetMarkText issue

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
johnnix
Newbie
Newbie
Posts: 11
Joined: Wed Jun 14, 2017 12:00 am

OnGetMarkText issue

Post by johnnix » Mon May 14, 2018 8:16 am

Hello,

I need to display the mark that is associated with the point that the mouse pointer is closest to, some time ago I was instructed to use the OnGetMarkText event and this was working ok but I realised that now with version 2017.23.171221 it does not behave correctly. Attached is a sample application, the Label1 caption get the series label value but it looks like the ValueIndex in the OnGetMarkText is fired with a step, I mean for index 1, 9, 18 etc. Am I doing something wrong here?

Regards
Attachments
Unit1.zip
(5.98 KiB) Downloaded 335 times

Yeray
Site Admin
Site Admin
Posts: 8971
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: OnGetMarkText issue

Post by Yeray » Wed May 16, 2018 11:04 am

Hello,

Try setting this:

Code: Select all

    Chart2.Series[0].Marks.Automatic.Move:=false;
    Chart2.Series[0].CalcVisiblePoints:=False;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

johnnix
Newbie
Newbie
Posts: 11
Joined: Wed Jun 14, 2017 12:00 am

Re: OnGetMarkText issue

Post by johnnix » Thu May 17, 2018 1:15 pm

Works like a charm, thank you!!! :)

Post Reply