[Solved] How to Adjust Checkbox Text Color? lazarus / 31-LCL ---------------------------------------------------------------------- loaded · 2022-02-25 06:19 Hi All, I saw different solutions in my research and I wanted to ask here, maybe it can be solved in a very simple way. The Color option in the font property of the checkbox does not work. Is there a setting to make it work? Respects. ---------------------------------------------------------------------- balazsszekely · 2022-02-25 09:12 TCheckbox is just a wrapper around the standard OS checkbox, therefor the color cannot be changed, not easily at least. You have several options: 1. Use a custom component instead 2. Try to catch LM_PAINT and do the drawing yourself 3. Disable themes 4. Delete the checkbox caption and add a label after it. I think this is the least painful method. You can even create a small component(TPanel + TDBCheckbox + TLabel) if you need to re-use a colored checkbox multiple times in your application ---------------------------------------------------------------------- loaded · 2022-02-25 09:29 My Dear Master Getmem, yes I can try these. But I am using TDBCheckBox in my project. The reason I gave an example from TCheckBox was that they were descended from the same ancestor. It's not essential for me to change the color, but it would be nice if it could be done simply. If I apply the above solution, I think I will also have to deal with the database. I will try your suggestions at a suitable time (By the way, the to-try list has increased so much!!! ) ---------------------------------------------------------------------- speter · 2022-02-26 09:48 You could maybe have no caption with the checkbox and place a label next to it (with coloured text)... cheers S. ---------------------------------------------------------------------- loaded · 2022-02-26 10:02 Thanks a lot for the reply, speter. Pretty simple solution, I don't know why I didn't think of this before.  Quote from: GetMem on February 25, 2022, 10:12:25 am4. Delete the checkbox caption and add a label after it. I think this is the least painful method. You can even create a small component(TPanel + TDBCheckbox + TLabel) if you need to re-use a colored checkbox multiple times in your application The master said but I did not understand ---------------------------------------------------------------------- loaded · 2022-02-26 20:07 Yes, this is exactly the solution I wanted, it's number ten, thank you very much jamie. I don't know why, after your messages, I understand master GetMem better. When I read Master GetMem 's message again Quote from: GetMem on February 25, 2022, 10:12:25 am2. Try to catch LM_PAINT and do the drawing yourself Apperantly ! The Master meant this in his statement. So, what he said is right, congratulations.