Problem with TreeView lazarus / 10-Designer ---------------------------------------------------------------------- VicFer · 2008-07-17 16:27 Hi all I created a form with a TTreeView component and a TImageList containig icons for the nodes. All is pretty enough but there's an annoying issue and I'm not able to fix it : when I click on a node the related icon disappears; it show up again when I click on another node into the tree. Anybody can help me ? Thank you all ---------------------------------------------------------------------- marclebrun · 2008-11-21 08:38 I have exactly the same problem ! With last version 0.9.26. ---------------------------------------------------------------------- duncanparsons · 2008-11-21 11:00 I'm away from a dev machine at the mo, but have a look in the paint routines, especially the code for when a node is selected against when it is not. First find the treeview source file, and do a diffs in SVN (either via a local SVN tool or via web interface); check that there isn't a regression in the paint code... If there is, eye-ball the code to see why changes were made (what was being 'fixed') and look at how to put it right. If it's always been wrong, see what can be done to make it right! DSP ---------------------------------------------------------------------- duncanparsons · 2008-11-21 11:21 OK, I just remoted to a dev box, and had a poke about.. in \lcl\include\treeview.inc, it all looks OK. Around line 4351 is the icon drawing code... It looks like you need to set the 'SelectedIndex' of each node for it to get painted. It's quite some time since I used TTreeview, but seem to recall this is how it's supposed to work HTH DSP ---------------------------------------------------------------------- VicFer · 2008-12-21 10:48 Thank you very much, your suggestion was good. Sorry for my late reply  Merry Christmas and happy new year to all of you