CursorTool Not Firing Properly?
Posted: Mon May 30, 2005 2:45 pm
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
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