Hello,
I've searched some time but not found a solution.
Somebody knows how to get the full path and filename for a selected node? I've tried via OnAfterSelectNode(Sender: TObject; ANode: TAdvTreeViewVirtualNode), but didn't found something in ANode.
Thank you Frank
You can retrieve the real node and cast it to a TAdvDirectoryTreeViewNode to retrieve the FileName
procedure TForm1.AdvDirectoryTreeView1AfterSelectNode(Sender: TObject;
ANode: TAdvTreeViewVirtualNode);
var
tn: TAdvDirectoryTreeViewNode;
s: string;
begin
tn := (ANode.Node as TAdvDirectoryTreeViewNode);
s := tn.FileName;
end;
aargh, so simple
many thanks.