Type | Description | |||
X as OLE_XPOS_PIXELS | A single that specifies the current X location of the mouse pointer. The x values is always expressed in client coordinates. | |||
Y as OLE_YPOS_PIXELS | A single that specifies the current Y location of the mouse pointer. The y values is always expressed in client coordinates. | |||
FaceEnum | A long expression that indicates the index of the face from the point. |
The following VB sample displays the index of the face from the cursor:
Private Sub Texture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim i As Long With Texture1 i = .FaceFromPoint(X / Screen.TwipsPerPixelX, Y / Screen.TwipsPerPixelY) If (i >= 0) Then .Object.ToolTipText = i End If End With End Sub