Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
那是我的问题。
如何将对象放入树的根节点?我知道 addChild 函数,但它适用于根节点的子节点。我需要将数据放入根节点。
解决方案很简单:
TVirtualStringTree.AddChild(nil,TMyObject) ...
nil等于根节点。
nil