Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying TreeView Properties 1

Status
Not open for further replies.

svanels

MIS
Aug 18, 1999
1,393
SR
I create nodes for a treeview dynamically with the AddChildObject procedure

How do I modify the ImageIndex and selectedIndex for the newly created nodes?


Code:
case XRec.Level of
 10..13:  begin
    New(MyRecPtr);
    MyRecPtr^.FName := XRec.FileName;
    treeMenu.Items.AddChildObject
      (Node_100[j],XRec.HelpString,MyRecPtr);
  end;

Regards Steven van Els
SAvanEls@cq-link.sr
 
Code:
node: TTreeNode;

node := treeMenu.Items.AddChildObject
      (Node_100[j],XRec.HelpString,MyRecPtr);
node.ImageIndex := ...
etc.
 
I knew that had to be something simple, thank you very much Mike. Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top