Dumb question: TCheckComboBox (Misc): How to do multi-select? lazarus / 31-LCL ---------------------------------------------------------------------- EganSolo · 2021-02-14 14:15 This is most likely trivial but I can't figure it out: When the list drops-down, I'd like to check several boxes and uncheck a few of them then close the list. As it is, after every click (check or uncheck) the list closes and I have to open it again. I looked for a multi-select option but couldn't find it anywhere. What am I missing? Thanks. ---------------------------------------------------------------------- EganSolo · 2021-02-14 14:56 Thanks Jamie, I tried it and it's ... sub-optimal. Every time I press the spacebar, the list jitters. Furthermore, that doesn't work if I use the mouse, which is a departure from normal user experience. I guess, I'm going to improvise with a Groupbox masquerading as a drop-down list. ---------------------------------------------------------------------- EganSolo · 2021-02-14 15:58 Yeah, I'm actually working on a solution that uses a CheckGroup inside a panel to achieve the same thing. It works well, with one exception: Even if I set the caption to '', I can't get rid of the space above the 'box' where the check items are located. So. I'm having to set Top of the checklist box to -8, which works, but it's a bit of a kludge. When creating this thing dynamically, I'm going to need to figure out how big of a panel I need based on the number of items. A bit of experiment should do the trick. Once I've got this thing running, I'll post back here. ---------------------------------------------------------------------- EganSolo · 2021-02-14 17:25 You're absolutely right, Jamie. Let's just say that my knowledge and experience on the graphical side is underwhelming  I've tried to understand how the DrawItem works, but I confess I'm still unclear on how to draw these checkboxes. Do I draw the squares, write the text and then handle the on-click event to draw the check- marks inside the boxes? Or is there a higher-level way of doing it? Much of the code I wrote up until now is mostly back-end, and algorithmic. I've used widgets and implemented events, but I haven't written code to draw and manage a checkbox. ---------------------------------------------------------------------- EganSolo · 2021-02-14 18:11 Thanks Jamie, that's easier than I thought, at least conceptually. To draw an item, I have to draw the image followed by the text. When the user clicks on the image, I have to switch the glyph in the image by changing its index. I get it. Since TCanvas has a method for drawing an Image (I think) and it has a method for drawing the text, this becomes a lot more manageable. Let me see if I can make some headway on this. ---------------------------------------------------------------------- EganSolo · 2021-02-17 05:40 Hi Jamie, Sorry for the delay in responding; I was busy working on another side of the app Thanks for the sample code! Very helpful! I'll definitely use it. Egan.