softtouch 9 Posted yesterday at 01:28 PM 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 2147 Posted yesterday at 02:23 PM Add an event handler for OnEnableItem and set AEnabled := False; Share this post Link to post
softtouch 9 Posted yesterday at 03:06 PM (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 yesterday at 03:07 PM by softtouch Share this post Link to post
Uwe Raabe 2147 Posted yesterday at 03:29 PM You can avoid that by setting MarkDisabledItem to False. Share this post Link to post