Page 1 of 1

mouse events in TeeChart

Posted: Mon Dec 06, 2004 11:10 pm
by 8437783
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]

Posted: Tue Dec 07, 2004 12:48 am
by Pep
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)".

Posted: Wed Dec 08, 2004 3:29 pm
by 8437783
--------------------------------------------------------------------------------
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

Posted: Wed Dec 08, 2004 3:45 pm
by Marjan
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.

Posted: Wed Dec 08, 2004 7:17 pm
by 8437783
Thanks-

The calcpos function does excactly what we needed.

Jennifer