Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>



Programmatically add nodes to the TAdvTreeComboBox
This code snippet inserts a new node in the TAdvTreeComboBox and two levels of child nodes:
var tn: TTreeNode; begin tn := AdvTreeComboBox1.Treeview.Items.Add(nil,'Item 1'); tn := AdvTreeComboBox1.Treeview.Items.AddChild(tn,'Sub item 1'); tn := AdvTreeComboBox1.Treeview.Items.AddChild(tn,'Sub item 1.1 '); end;