softtouch 9 Posted May 30 I am trying since hours to find a way to disable that a user can select an item from a TControlList, without success. What I am trying to do is to show all the items, but in some sort of a "viewer" mode, so tuser can see/scroll all the items, but there is no focus drawn and items cannot be selected. I also tried to change the colors in ItemSelectionOptions, but whatever I set there, it wont change anything. If I set the colors all to lets say clRed, they are still blue. How can I do what I want to do? Share this post Link to post
Uwe Raabe 2159 Posted May 30 Add an event handler for OnEnableItem and set AEnabled := False; Share this post Link to post
softtouch 9 Posted May 30 (edited) 43 minutes ago, Uwe Raabe said: Add an event handler for OnEnableItem and set AEnabled := False; I already tried that, but the text (label) in the item will be in a typical disabled color (some sort of gray), when I set AEnabled to false, thats also not great. Edited May 30 by softtouch Share this post Link to post
Uwe Raabe 2159 Posted May 30 You can avoid that by setting MarkDisabledItem to False. Share this post Link to post