TreeView, what is selected? lazarus / 39-Graphics ---------------------------------------------------------------------- xmldom · 2012-01-25 18:17 Hi, I have TreeView an Edit on my Form. How can I write actually selected item in TreeView to Edit? ---------------------------------------------------------------------- ludob · 2012-01-25 19:28 Create an OnChange event handler for the Treeview and enter: Code: [Select]Edit1.Text:=Node.Text; Node is a parameter of the Onchange event handler. ---------------------------------------------------------------------- jmpessoa · 2012-01-26 02:51 OR: if TreeView1.Selected <> nil then Edit1.Text:= TreeView1.Selected.Text; ---------------------------------------------------------------------- exdatis · 2012-01-26 06:03 Also: if TreeView1.Selected.Level = 0 then # node ---------------------------------------------------------------------- ajosifoski · 2013-03-28 19:47 Hi, I have some kind of different problem. When changing focus on another object selected item of TreeView loses selection. Any idea how to solve that? Tnx ---------------------------------------------------------------------- wp · 2013-03-28 20:25 No, the item is still selected, but the selection is hidden. Set HideSelection to false. ---------------------------------------------------------------------- ajosifoski · 2013-03-28 20:36 Quote from: wp on March 28, 2013, 09:25:48 pmNo, the item is still selected, but the selection is hidden. Set HideSelection to false. I've did it, but still problem occurs. Deciced to upgrade current 0.9.30.2-2 to newest release to see what will happened. Linux Mint nice instructions here: http://www.lazarus.freepascal.org/index.php?topic=15432.0 ---------------------------------------------------------------------- ajosifoski · 2013-03-29 10:56 Upgrading on 1.0.8 problem disapears.