0

That is my question.

How I can put object to root node of tree? I know about addChild function, but it's for sub-nodes of root node. I need put data into root node.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
AlexLL
  • 165
  • 1
  • 13

1 Answers1

1

The solution is simple:

TVirtualStringTree.AddChild(nil,TMyObject) ...

nil are equal to root node.

AlexLL
  • 165
  • 1
  • 13