GetCursorPos

<< Click to Display Table of Contents >>

 

GetCursorPos

GetCursorPos(X, Y)

Returns the position where a cursor intercepted a Pen in E3Chart. This method contains the X and Y parameters, which correspond to a cursor's x and y coordinates. If this method is successful it returns True, otherwise it returns False. Example:

Sub CommandButton1_Click()
  For Each pen In Chart.Pens
    If pen.GetCursorPos(aa, bb) Then
      strResult = strResult & pen.Name & _
        " := " & CSTr(CDate(aa)) + _
        "y " + CStr(bb) + vbNewLine
    End If
  Next
  MsgBox strResult
End Sub

Was this page useful?