Get Y value for current mouse position

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Lenfors
Newbie
Newbie
Posts: 49
Joined: Thu Sep 20, 2007 12:00 am

Get Y value for current mouse position

Post by Lenfors » Tue Dec 01, 2009 12:18 pm

Hello!

I have a TLineSeries. In the CharMouseMove event I want to get the current Series Y value for the current mouse horizontal position (X).

How Do I do this?

Tried XScreenToValue and YScreenToValue but they return analog values and my Series only contains the values 0 and 1.

Regards, Mikael

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Get Y value for current mouse position

Post by Narcís » Tue Dec 01, 2009 2:09 pm

Hi Mikael,

You could try using the interpolation example I posted here?

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply