shaneholmes
asked on
Traverse Tree View Nodes
I have a treeview and would like to start at the root and traverse each node. I need to do this utilizing the parent child relationship, and will most likely need a recursive function to do so (which backs up). I need to start at the root and visit each of its children and each of theirs and so on. The reason I need this is cause I need to build a visual tree diagram on a canvas, based off from this traverse.
Shane
Shane
Shane,
I can send you tomorrow a Working Example ( Printing a Treeview with Quickreport )
I am now too tired (2:00 am)
cu
Cesario
I can send you tomorrow a Working Example ( Printing a Treeview with Quickreport )
I am now too tired (2:00 am)
cu
Cesario
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CurItem := TreeView1.Items.GetFirstNo
while CurItem <> nil do
begin
//Draw root node on canvs
CurItem := CurItem.GetNext;
end;
Need to know when to draw root, its children, and their children
Shane