How to right click select node in TAdvTreeView


i would like to get the node where i right clicked on. I was searching for something like GetItemAt() but i did not find something like that. Is there any was to determine the Node which was right clicked?



You can use the AdvTreeView1.XYToNode(X, Y) function for that. It returns a reference to the internal virtual node, that gives access to the collection node as well if you are using a collection-based treeview.

Ah ... ok ... i did not expect that function name :-) ... thank you very much and greets from germany,