TCheckBox.Color not working... again? lazarus / 7-LCL ---------------------------------------------------------------------- idog · 2009-11-18 01:40 Hi, I put a simple TCheckBox on a form and set its Color to whatever from the object inspector - and nothing happens, neither at design time nor at run time. Also, nothing happens if I change it from inside the code. ParentColor is false. I see there's a closed bug report about this (#13458) on the same widgetset and for an earlier version, so maybe I'm just missing something? Version 0.9.29-22300/2.2.4, Vista 32-bit. Thanks. ---------------------------------------------------------------------- Blaazen · 2009-11-18 02:05 Hi, it works normally on Qt widgetset Kubuntu 9.10 64bit. Laz. 0.9.29 - svn 22663, fpc 2.5.1 B. ---------------------------------------------------------------------- Blaazen · 2009-11-18 09:27 Hi again, just tried on 32bit Vista and does not work. Check box color and check box font color cannot be changed. The same for Tbutton, Tradioitem. Color can be changed on TPanel, font color on TBitBtn. But it is older lazarus, i have here 22279 (0.9.28) and fpc 2.2.4. B. ---------------------------------------------------------------------- Vincent Snijders · 2009-11-18 09:35 I have Lazarus 0.9.29 and I have can create a checkbox with red background and yellow characters on windows xp. ---------------------------------------------------------------------- tk · 2009-11-18 09:36 I remember that these attributes didn't work in Delphi if you have themes enabled. ---------------------------------------------------------------------- idog · 2009-11-18 12:04 tk - Do you mean Vista themes, from the OS iteself? Or something within Lazarus? ---------------------------------------------------------------------- Vincent Snijders · 2009-11-18 13:01 With themes enabled, the background color can be changed, but not the font color. ---------------------------------------------------------------------- Blaazen · 2009-11-18 14:14 Vista - when changed theme to classic setting, both checkbox and radioitem work well (background and font) but TButton has still "system" look. B. ---------------------------------------------------------------------- Vincent Snijders · 2009-11-18 14:20 And that is not fixable, see the restrictions tab in the object inspector of TButton.Color and known issues[/ur]. ---------------------------------------------------------------------- Blaazen · 2009-11-18 14:54 Yes, TButton.Color and TBitBTn.Color, but here of some reason I cannot change TButton.Font.Color, which is not restricted (in Windows). TBitbtn.Font.Color works well. So is solution for idog ownerdraw? B. Edit: I see it is probably not possible here. ---------------------------------------------------------------------- idog · 2009-11-18 16:06 In my particular case, this issue is not important enough to start OwnerDrawing. I'll just put the checkbox on a colored panel or something. I just wanted to make sure it wasn't a bug. Thanks, all.