Jump to content

Recommended Posts

Posted

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
Posted

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.

  • 2 weeks later...
Posted

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

×
×
  • Create New...