Page 1 of 1

CursorTool Not Firing Properly?

Posted: Mon May 30, 2005 2:45 pm
by 8124568
I have added a CursorTool to my TeeChart. I require the Y value for a given Series to display in a label.

CursorToolz.Active = True
CursorToolz.FollowMouse = True
CursorToolz.Series = Y1
CursorToolz.Style = Steema.TeeChart.Tools.CursorToolStyles.Both

I have tried:

Private Sub CursorTool_Change(ByVal sender As Object, ByVal e As Steema.TeeChart.Tools.CursorChangeEventArgs) Handles CursorTool.Change
lblselect.Text = FormatNumber(CursorToolz.YValue, 1).ToString
End Sub

Private Sub TChartz_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TChartz.MouseMove
lblselect.Text = FormatNumber(CursorToolz.YValue, 1).ToString
End Sub

Private Sub TChartz_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TChartz.MouseDown
lblselect.Text = FormatNumber(CursorToolz.YValue, 1).ToString
End Sub

The only time CursorTool appears to work is when the Cursor moves off then on the chart again. What am I missing?

I have read all the other threads on CursorTool and there was a problem with other builds. I have the leatest release.

Thanks

Posted: Mon May 30, 2005 3:17 pm
by narcis
Hi Avatar,

Using latest TeeChart version available CursorTool fires but it doesn't fire properly. Please see this thread related to the same problem.

Also notice that is already fixed in TeeChart for .NET v2 which BETA version is currently available from our customer download area.