[SOLVED] A TTreeView problem that should be easy to fix. lazarus / 31-LCL ---------------------------------------------------------------------- EganSolo · 2017-08-29 01:56 I'm using a TTreeView to display files in a folder. Nothing too crazy. The first image shows one entry in that TTreeView with a glyph and a text. If I click on it, TTreeView goes immediately into edit mode and the associated glyph vanishes. I've pressed enter and escape and nothing happens. This should be easy to fix, right? ---------------------------------------------------------------------- EganSolo · 2017-08-29 04:08 The solution was indeed easy. If you do not set TTreeNode.SelectedIndex to the index of the glyph that you want, then TTreeView assumes you do not want a glyph in selected mode. That actually make sense if, say the actual glyph depends on the text that you type. All in all, it was a very easy fix. Hope this helps other. Also, be sure to check the site that is referenced in the TTreeView Example folder that ships with Lazarus.