Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi treeview selection gets lost

One small question. I need to have my selected treeview item stay visually "selected" even when focus is set on other component, anybody knows which property is responsible for that?

like image 371
CloudyMarble Avatar asked Apr 08 '11 08:04

CloudyMarble


1 Answers

The property you are looking for is called

HideSelection

From the help:

Use HideSelection to specify whether the user is given visual feedback about the current selection in the tree view when it does not have focus. If true, the selected node is not visually distinct from other nodes until focus returns to the control. If false, the node always appears selected.

like image 164
Marjan Venema Avatar answered Nov 15 '22 02:11

Marjan Venema