Home > Back-end >  Delphi treeview how to modify a node to other nodes?
Delphi treeview how to modify a node to other nodes?

Time:09-17

Delphi treeview how to modify a node to other nodes?
Good for database operations can be as long as parentid refers to the past
But software on how to implement?
Delphi is there a way to directly modify the father node?
Hasn't been found
Write a recursion is expected to be processing
Also consult everybody have ready-made methods thank you.

CodePudding user response:

As long as the parent node, can operation to it,
 var NowNode PNode, InsNode: TTreeNode; 
TipS: the string;
The begin
NowNode:=TreeView1. Selected;
PNode:=NowNode. Parent;
//at this point to the parent node to operate the
PNode. Text:=' ';
PNode. Text:=' ';
TipS:='new nodes';
InsNode:=TreeView1. Items. The Add (NowNode, TipS);//add node
,,,,,,,,

  • Related