procedure TForm1.Button1Cliec(Sender: TObject);
var
Node: TTreeNode;
begin
Node := TreeView1.Selected;
TreeView1.Items.Add(Node,Edit.Text); //Add a subnode under Current node
//or you can add a node under root
//TreeView1.Ttems.Add(nil,Edit.Text);
end;