rgreat Posted December 22, 2015 Share Posted December 22, 2015 I tried: TV1.Items.AddNode(TV1,Selected,TV1,Selected,'1',nil,naInsert); TV1.Items.AddNode(TV1,Selected,nil,'1',nil,naInsert); TV1.Items.AddNode(nil,TV1,Selected,'1',nil,naInsert); Nothing work as expected. Quote Link to comment Share on other sites More sharing options...
DFong Posted December 23, 2015 Share Posted December 23, 2015 try: NewTreeNode := TUniTreeNode.Create(nil);AddedTreeNode := TV1.Items.AddNode(NewTreeNode,Selected,'1',nil,naAddChild); NewTreeNode.Free; Quote Link to comment Share on other sites More sharing options...
rgreat Posted December 23, 2015 Author Share Posted December 23, 2015 naAddChild, are you sure? I need to insert NewNode before node3 not under it: Node1 NewNode Node2 (Selected node) Node3 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 23, 2015 Share Posted December 23, 2015 Hi, NodeAttachMode not been implemented yet.. Best regards. Quote Link to comment Share on other sites More sharing options...
rgreat Posted December 23, 2015 Author Share Posted December 23, 2015 What?! But it's a basic treeview functionality! Oh, ok. I will hope for the best. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 23, 2015 Share Posted December 23, 2015 Hi, I hope that soon it will be added. Best regards. Quote Link to comment Share on other sites More sharing options...
DFong Posted December 23, 2015 Share Posted December 23, 2015 naAddChild, are you sure? I need to insert NewNode before node3 not under it: add child to Selected.Parent Quote Link to comment Share on other sites More sharing options...
rgreat Posted December 23, 2015 Author Share Posted December 23, 2015 That will add to the end of list, not in the middle of it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.