Recent

Author Topic: TCheckBox.Color not working... again?  (Read 15002 times)

idog

  • Full Member
  • ***
  • Posts: 121
    • www.idogendel.com (Hebrew)
TCheckBox.Color not working... again?
« on: November 18, 2009, 02:40:42 am »
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

  • Hero Member
  • *****
  • Posts: 2961
  • POKE 54296,15
    • Eye-Candy Controls
Re: TCheckBox.Color not working... again?
« Reply #1 on: November 18, 2009, 03:05:41 am »
Hi,

it works normally on Qt widgetset Kubuntu 9.10 64bit.
Laz. 0.9.29 - svn 22663, fpc 2.5.1

B.
Lazarus 2.1.0 r64044 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Blaazen

  • Hero Member
  • *****
  • Posts: 2961
  • POKE 54296,15
    • Eye-Candy Controls
Re: TCheckBox.Color not working... again?
« Reply #2 on: November 18, 2009, 10:27:16 am »
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.
Lazarus 2.1.0 r64044 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: TCheckBox.Color not working... again?
« Reply #3 on: November 18, 2009, 10:35:33 am »
I have Lazarus 0.9.29 and I have can create a checkbox with red background and yellow characters on windows xp.

tk

  • Sr. Member
  • ****
  • Posts: 367
Re: TCheckBox.Color not working... again?
« Reply #4 on: November 18, 2009, 10:36:25 am »
I remember that these attributes didn't work in Delphi if you have themes enabled.

idog

  • Full Member
  • ***
  • Posts: 121
    • www.idogendel.com (Hebrew)
Re: TCheckBox.Color not working... again?
« Reply #5 on: November 18, 2009, 01:04:03 pm »
tk - Do you mean Vista themes, from the OS iteself? Or something within Lazarus?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: TCheckBox.Color not working... again?
« Reply #6 on: November 18, 2009, 02:01:10 pm »
With themes enabled, the background color can be changed, but not the font color.

Blaazen

  • Hero Member
  • *****
  • Posts: 2961
  • POKE 54296,15
    • Eye-Candy Controls
Re: TCheckBox.Color not working... again?
« Reply #7 on: November 18, 2009, 03:14:11 pm »
Vista - when changed theme to classic setting, both checkbox and radioitem work well (background and font) but TButton has still "system" look.
B.
Lazarus 2.1.0 r64044 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: TCheckBox.Color not working... again?
« Reply #8 on: November 18, 2009, 03:20:14 pm »
And that is not fixable, see the restrictions tab in the object inspector of TButton.Color and known issues[/ur].

Blaazen

  • Hero Member
  • *****
  • Posts: 2961
  • POKE 54296,15
    • Eye-Candy Controls
Re: TCheckBox.Color not working... again?
« Reply #9 on: November 18, 2009, 03:54:58 pm »
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.

« Last Edit: November 18, 2009, 03:58:52 pm by Blaazen »
Lazarus 2.1.0 r64044 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

idog

  • Full Member
  • ***
  • Posts: 121
    • www.idogendel.com (Hebrew)
Re: TCheckBox.Color not working... again?
« Reply #10 on: November 18, 2009, 05:06:58 pm »
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.

 

TinyPortal © 2005-2018