property ExplorerTree.ShortcutFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as String
Gets the shortcut from the cursor.

TypeDescription
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 shortcut from the point.
Use the ShortcutFromPoint property to get the shortcut from the point specified by the {X,Y}. The X and Y coordinates are expressed in client coordinates, so a conversion must be done in case your coordinates are relative to the screen or to other window. If the X parameter is -1 and Y parameter is -1 the ShortcutFromPoint property determines the shortcut from the cursor. Use the ItemFromPoint property to get the cell or item from the cursor. Use the ColumnFromPoint property to access the column over the point. Use the GroupFromPoint property to get the group's caption from the cursor. The Shortcut property indicates the HTML caption of the shortcut that displays the specified group. Groups with the same Shortcut property are displayed in the same shortcut. The ShortcutPicture property assigns a custom size picture to a shortcut. Use the ShortcutPictureWidth and ShortcutPictureHeight properties to indicate the size of the picture being displayed in the shortcut bar. Use the ShowToolTip property to display programmatically a custom tooltip.

The following VB sample displays the shortcut from the cursor:

Private Sub ExplorerTree1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Debug.Print ExplorerTree1.ShortcutFromPoint(-1, -1)
End Sub

The following VB.NET sample displays the shortcut from the cursor:

Private Sub AxExplorerTree1_MouseMoveEvent(ByVal sender As Object, ByVal e As AxEXPLORERTREELib._IExplorerTreeEvents_MouseMoveEvent) Handles AxExplorerTree1.MouseMoveEvent
    Debug.Print(AxExplorerTree1.get_ShortcutFromPoint(-1, -1))
End Sub

The following C# sample displays the shortcut from the cursor:

private void axExplorerTree1_MouseMoveEvent(object sender, AxEXPLORERTREELib._IExplorerTreeEvents_MouseMoveEvent e)
{
    System.Diagnostics.Debug.WriteLine(axExplorerTree1.get_ShortcutFromPoint(-1, -1));
}

The following C++ sample displays the shortcut from the cursor:

void OnMouseMoveExplorertree1(short Button, short Shift, long X, long Y) 
{
	OutputDebugString( m_explorerTree.GetShortcutFromPoint( -1, -1 ) );
}

The following VFP sample displays the shortcut from the cursor:

*** ActiveX Control Event ***
LPARAMETERS button, shift, x, y

with thisform.ExplorerTree1
	wait window nowait .ShortcutFromPoint(-1,-1)
endwith