<< Click to Display Table of Contents >>
OnCursorChange |
OnCursorChange()
Occurs whenever an E3Chart cursor changes its position. For example, users can create a script for this event when they want to show cursor position values on a Screen. The next script contains an example of using this event.
Sub E3Chart1_OnCursorChange()
Set Chart = Application.GetFrame("").Screen.Item("E3Chart1")
Set Pen = Chart.Pens.Item(0)
' The Text1 object must display
' cursor's current position
Set Text = Application.GetFrame("").Screen.Item("Text1")
If Pen.GetCursorPos(aa, bb) Then
Text.Value = "X Position = " & aa & "; Y Position = " & bb
End If
End Sub