Skip to main content
GameDev.net gamedev.net
🔒 Locked

[Delphi] TTreeView problem

Started by Darhazer Jan 10, 2004 at 6:00 AM 0 replies 200+ views
Original Post
Darhazer
Darhazer
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
"What do you think you were created for..."To be Game Maker

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.