Private Sub DrawCursor
Private dc = 7dip As Int
Private Radius = 3dip As Int
Private X = XTicks(CurrentX(GI)) As Int
Private Y = ValueToPixels(CurrentY(GI)) As Int
Private Y2 = ValueToPixels(CurrentY2(GI)) As Int
cvsCursor(GI).DrawRect(rectCursor(GI), Colors.Transparent, True, 1dip)
cvsCursor(GI).DrawRect(rectCursor2(GI), Colors.Transparent, True, 1dip)
pnlCursor(GI).Invalidate2(rectCursor(GI))
pnlCursor(GI).Invalidate2(rectCursor2(GI))
If GI == 1 Then
cvsCursor(GI).DrawLine(X - dc, Y, X + dc, Y, Colors.Red, 2dip)
cvsCursor(GI).DrawLine(X, Y - dc, X, Y + dc, Colors.Red, 2dip)
End If
If GI == 0 Then
cvsCursor(GI).DrawLine(X - dc, Y, X + dc, Y, Colors.Blue, 2dip)
cvsCursor(GI).DrawLine(X, Y - dc, X, Y + dc, Colors.Blue, 2dip)
End If
rectCursor(GI).Initialize(X - dc, Y - dc, X + dc, Y + dc)
pnlCursor(GI).Invalidate2(rectCursor(GI))
cvsCursor(GI).DrawCircle(X, Y2, Radius, Colors.Black, True, 1dip)
rectCursor2(GI).Initialize(X - Radius, Y2 - Radius, X + Radius, Y2 + Radius)
pnlCursor(GI).Invalidate2(rectCursor2(GI))
End Sub