ImageEn, unit iexFolderTree

TIEFolderTree.GetPathAt

TIEFolderTree.GetPathAt


Declaration

function GetPathAt(X, Y: Integer; AllowSpecialFolders: Boolean = False; CheckBounds: Boolean = True) : String;


Description

Returns the Path of the node at the specified position, or '' if no node is found.
This method uses TTreeView.GetNodeAt to determine the node at a position.
If AllowSpecialFolders is true, it may return special folders, such as IEF_Desktop_Folder or IEF_Drives_Folder.
If CheckBounds is true the path is only returns if x,y is exactly over the icon or label of the node. When false, anywhere in the row is allowed.


Example

s := IEFolderTree1.GetPathAt( x, y );
ShowMessage( s );


See Also

 PathToNode