Yet another treeview question ....
Posted on 2000-01-08
I've got one treeview which displays a directory and it's subdirectorys and files.
When I double click a node in the treeview, I'd like to get the filename I clicked and the full path.
I almost have this right, all I do is that I take the start path the treeview displays, and then Treeview.Selected.Text, but when there's a parent node in between, the path will not be correct.
So, basically what I need is to find out whether the selected node has a parent, and if it does, I need it's caption.
Filename := Startpath+TreeViewParentText+TreeView.Selected.text;
Or something similiar