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 X location of the mouse pointer. The x values is always expressed in client coordinates | |||
String | A string expression that indicates the name of the button over the point (x,y) excluding the HTML tags. |
The following sample displays the button from cursor:
Private Sub Calc1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) With Calc1 Debug.Print .ButtonFromPoint(X / Screen.TwipsPerPixelX, Y / Screen.TwipsPerPixelY) End With End Sub