

| 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. | |||
| String | A String expression that specifies the identifier (id) of the anchor element from the point, or empty string if there is no anchor element at the cursor. | 
The following VB sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
Private Sub StatusBar1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    With StatusBar1
        .ShowToolTip .AnchorFromPoint(-1, -1), , 3
    End With
End Sub
  The following VB.NET sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
Private Sub AxStatusBar1_MouseMoveEvent(ByVal sender As Object, ByVal e As AxEXSTATUSBARLib._IStatusBarEvents_MouseMoveEvent) Handles AxStatusBar1.MouseMoveEvent
    With AxStatusBar1
        .ShowToolTip(.get_AnchorFromPoint(-1, -1), "", 3, -1, -1)
    End With
End Sub
  The following C# sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
private void axStatusBar1_MouseMoveEvent(object sender, AxEXSTATUSBARLib._IStatusBarEvents_MouseMoveEvent e)
{
    axStatusBar1.ShowToolTip(axStatusBar1.get_AnchorFromPoint(-1, -1), "", 3, -1, -1);
}
  The following C++ sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
void OnMouseMoveStatusbar1(short Button, short Shift, long X, long Y) 
{
	m_statusBar.ShowToolTip( m_statusBar.GetAnchorFromPoint( -1,-1), COleVariant(""), COleVariant((long)3), COleVariant( long(-1) ), COleVariant( long(-1) ) );
}
  The following VFP sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
*** ActiveX Control Event *** LPARAMETERS button, shift, x, y with thisform.StatusBar1 .ShowToolTip(.AnchorFromPoint(-1,-1), "", 3, -1, -1 ) endwith