How can I get the datetimevalues with moving mouse in the chart.
I was used to this by:
Series1.GetCursorValues(CX,CY);
Decodedatetime(CX,year,month,day,Hour, Min, Sec, MSec);
But how to do this in dotnet?
Hans
Running datetime values with mousemove
Hi, Hans.
In .NET, you have to use slightly different approach:
In .NET, you have to use slightly different approach:
Code: Select all
double CX = ...
System.DateTime dt = DateTime.FromOADate(CX);
// access dt properties for year, month, etc...
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Hi.
That's easy (check TeeChart tutorials and demo for an example):
where mousexposition and mouseyposition are cursor current screen x and y values (integers).
That's easy (check TeeChart tutorials and demo for an example):
Code: Select all
double CX = Series1.GetHorizAxis.CalcPosPoint(mousexposition);
double CY = Series1.GetVertAxis.CalcPosPoint(mouseyposition);
Marjan Slatinek,
http://www.steema.com
http://www.steema.com