Click on icon in TComboBox lazarus / 31-LCL ---------------------------------------------------------------------- zamtmn · 2011-05-22 16:11 Hi all. How to handle a click on the icon in the csOwnerDraw TComboBox? I need to when click on the icon to prohibit the selection item is clicked or collapse the list. Sorry for my english(( ---------------------------------------------------------------------- Blaazen · 2011-05-22 16:17 Quote...  I need to when click on the icon to prohibit the selection item is clicked ...Do you mean something like CheckBoxes in TComboBox ? ---------------------------------------------------------------------- zamtmn · 2011-05-22 16:38 QuoteDo you mean something like CheckBoxes in TComboBox ?Yes, exactly. CheckBoxes with other icons ---------------------------------------------------------------------- zamtmn · 2011-05-22 16:45 Something like this animated gif ---------------------------------------------------------------------- Blaazen · 2011-05-22 18:34 I think it is impossible with TComboBox. The most similar thing I found in Lazarus: Tools -> Configure Build Lazarus ... (done by THeaderControl + TListBox) You will probably have to do it by combonation of TEdit + TListBox (and you will show/hide TListBox). Or possibly you can use one TStringGrid or TDrawGrid and change its height (one row / more rows). And of course you will have to draw your own icons using OnDrawItem events. At this time I have no idea for simplier solution. ---------------------------------------------------------------------- zamtmn · 2011-05-22 18:59 Thank you. I thought so ((.'ll try to make using TListBox