Board index » delphi » How to get TreeView Item Index

How to get TreeView Item Index

hi ..

How can I  get treeview item index ?
thx!!

connie

 

Re:How to get TreeView Item Index


Quote
> How can I  get treeview item index ?

Do you mean the selected item?
That depends.

First use TTreeView.Selected to get hold of the selected node.
Then use TTreeNode.Index to obtain its position relative to its parent node
or
TTreeNode.AbsoluteIndex for the obvious.

--
Martin

Other Threads