Checkbox in owner-drawn TCheckListbox lazarus / 31-LCL ---------------------------------------------------------------------- wp · 2011-07-05 19:30 I want to draw a bitmap between the checkbox and the text of a the items of a TCheckListbox. When I activate the lbOwnerDrawFixed style, however, the checkbox gets lost, and I have to redraw it by myself. Looking at the sources of TCheckListbox I cannot find the code which does the drawing of the checkboxes. How is this done? Doing a google search I found code using the ThemeServices. But is this platform- independent? ---------------------------------------------------------------------- zeljko · 2011-07-05 19:58 Yes, you should use theme services. I guess that checkbox is implemented for most widgetsets. ---------------------------------------------------------------------- Ask · 2011-07-06 04:50 Is there any sense in using TCheckListBox as a base then? How about TStringGrid -- it is much more flexible. ---------------------------------------------------------------------- wp · 2011-07-06 06:43 Good point. I was thinking about using a TListbox anyway since I do not need the mechanism of storing the check state, but a TStringGrid is maybe even better. I'll have to think about it. Another question about the ThemeServices: Is it necessary, like in Delphi, to call DrawFrameControl if ThemeServices are not available?