Original Post
Hi,
I''m making program and I use TTreeView. I want to add child nodes using pop-up menu. Myproblem is that I cannot make it select node with right click. I set the rightclickselect property to true, when I click with right button on node, it becomes selected, but when I chose the "Add" command from the pop-up menu, the child is added to the previously selected node. What''s wrong?
The code for adding that I''m using is:
Resources.Items.AddChild(Resources.Selected,''object0'');
Resources.Selected.Expand(false);
Resources is the name of TTreeView object
Thank you in advice