(I know I had this working 18 months ago but I forget how, don't have access to the code any more)
I have a TFreeview, which has two levels of nodes: people, and their children, like this
Adam
....Adam1
....Adam2
Ben
...Ben1
Charlotte
Denis
Den1
...den2
I want the treeview to behave in two ways:
- 1) when loaded to display just the top level nodes: Adam, Ben, Charlotte Denis.
- 2) Then when (double or single-) clicking one of those, to expand just that node Optionally, to also collapse any node that is already expanded, but I can live without that bit.
Some mix of properties and options solved this, but I can't find it now.
Any ideas?
Teresa