imagina Posted August 12, 2011 Posted August 12, 2011 Hello there If I choose a node in a UniTreeView with a mouse click, the node is highlighted with a different background color, but if I set the Selected property via code to true, the node is not highlighted. Please advice me how to show the hightlight of a selected node. I tried: tree.Selected := tree.Items[0]; or tree.Items[0].Selected := True; In both cases the node are selected, but not in a visible mode to user. Thanks
Administrators Farshad Mohajeri Posted August 13, 2011 Administrators Posted August 13, 2011 Hello there If I choose a node in a UniTreeView with a mouse click, the node is highlighted with a different background color, but if I set the Selected property via code to true, the node is not highlighted. Please advice me how to show the hightlight of a selected node. I tried: tree.Selected := tree.Items[0]; or tree.Items[0].Selected := True; In both cases the node are selected, but not in a visible mode to user. Thanks It does work here. UniTreeView1.Selected:=UniTreeView1.Items[0]; Places blue highlighter on first node.
Administrators Farshad Mohajeri Posted August 13, 2011 Administrators Posted August 13, 2011 tree.Selected := tree.Items[0]; or tree.Items[0].Selected := True; Do you do this before Form is shown or after?
imagina Posted August 22, 2011 Author Posted August 22, 2011 Do you do this before Form is shown or after? Sorry for the delay. No success before or after (I added a test button to perform manually after the treeview is filled). Thx
Administrators Farshad Mohajeri Posted August 26, 2011 Administrators Posted August 26, 2011 Sorry for the delay. No success before or after (I added a test button to perform manually after the treeview is filled). Thx Where do you assign Selected? I mean in what event?
Recommended Posts