mouse events in TeeChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jennifer Good
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Dallas Tx

mouse events in TeeChart

Post by Jennifer Good » Mon Dec 06, 2004 11:10 pm

Is there a way to get the value of x in the chart x axis from the
values of x reported in the mousedown event?

Thanks,

Jennifer
sales@msdsimaging.com[/b]

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Dec 07, 2004 12:48 am

Hi Jennifer,

yes, you can see a similar example (which does the same but using the OnMouseMove event) in the steema.public.attachments newsgroup (at news://www.berneda.com ), with the Subject : "RE: Click Chart to get Series Value (Matt)".

Jennifer Good
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Dallas Tx

Post by Jennifer Good » Wed Dec 08, 2004 3:29 pm

--------------------------------------------------------------------------------
Hi Jennifer,
yes, you can see a similar example (which does the same but using the OnMouseMove event) in the steema.public.attachments newsgroup (at news://www.berneda.com ), with the Subject : "RE: Click Chart to get Series Value (Matt)".
Hi Matt-

We have been all over the berneda newsgroups and we cannot find this-
Is there a fuinction call that will give us the x position in "chart units"
from the mouse x position. we can certsainly take it form there.

Thanks,

Jennifer

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Dec 08, 2004 3:45 pm

Hi, Jennifer.
Is there a fuinction call that will give us the x position in "chart units"
from the mouse x position. we can certsainly take it form there.
Yes, sure. Use TChartSeries.XScreenToValue method or TChartAxis.CalcPosPoint method.
Marjan Slatinek,
http://www.steema.com

Jennifer Good
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Dallas Tx

Post by Jennifer Good » Wed Dec 08, 2004 7:17 pm

Thanks-

The calcpos function does excactly what we needed.

Jennifer

Post Reply