Vbscript with Teechart 7
Posted: Tue May 20, 2008 5:45 am
sub TChart1_OnCursorToolChange(Tool, X, Y, XVal, YVal, Series, ValueIndex)
If Tool = 0 Then
TChart1.Tools.Items(1).asTeeCursor.XVal = TChart1.Tools.Items(0).asTeeCursor.XVal
Else
TChart1.Tools.Items(0).asTeeCursor.XVal = TChart1.Tools.Items(1).asTeeCursor.XVal
End If
End Sub
The above oncursortoolchange procedure does not get call. Is there anything wrong with the code.
I have 2 series on the chart with custom axis. I need the teecursor tool to extent it to both series. currently, cursor tool is either in series on axis or in series 2 exits.
The forum suggest to place 2 cursor tool on the chart and use oncursortoolchange event but it does not work.
If Tool = 0 Then
TChart1.Tools.Items(1).asTeeCursor.XVal = TChart1.Tools.Items(0).asTeeCursor.XVal
Else
TChart1.Tools.Items(0).asTeeCursor.XVal = TChart1.Tools.Items(1).asTeeCursor.XVal
End If
End Sub
The above oncursortoolchange procedure does not get call. Is there anything wrong with the code.
I have 2 series on the chart with custom axis. I need the teecursor tool to extent it to both series. currently, cursor tool is either in series on axis or in series 2 exits.
The forum suggest to place 2 cursor tool on the chart and use oncursortoolchange event but it does not work.