Page 1 of 1

Treeview and listview

PostPosted: February 4th, 2005, 11:45 am
by werdnareid
Hi all does anyone know where i can find reading material on
Treeview and listview components. Or give me some idea how to manipulate these components at runtime.....(Do i have to allocate memory for the node)

PostPosted: February 4th, 2005, 12:20 pm
by Stefan
Hi,

I'm not sure if I know what you mean. Do you want to alter the behaviour of the TTreeView at runtime or do you simply want to add items to the tree?

In that (second case) just look at the Delphi help example for TTreeNodes.Add...

Just type TTreeNode somewhere in your code;
press F1;
select <methods>;
select the "Add" method;
select <example>;
and you'll see a working example of "runtime-manipulation"...

Cheers,
Stefan