Forum > Designer

TBitBtn & TSpeedButton color not working ...

(1/1)

1HuntnMan:
Just yesterday evening, adding a TBitBtn or TSpeedButton to a panel on a form, can't change it's color. It's just white. It defaults to clBtnFace. When I first put in on the form it's pure white even thought the default is clBtnFace. I've tried to change it to any color and Laz just ignores the change. Anyone know how to fix this? I reinstalled Lazarus this morning but the problems still exists.

KodeZwerg:
You can install the BGRA Controls, there you find what you need. (Probably also in other packages but thats the first the come in my mind to suggest)

Its pretty easy to do:
- install the BGRA Controls and what it reqiures via OPM
- put a BGRAThemeButton on your form
- put a BGRAColorTheme on your form
- connect both together in BGRAThemeButton properties
- adjust the colors however you want
- enjoy it  :-*

Bart:
Disable theming (if you're on Windows).
It's somewhere in Compiler Options (Ctrl+Shift+F11 IIRC).

Bart

lainz:

--- Quote from: Bart on October 25, 2023, 05:56:00 pm ---Disable theming (if you're on Windows).
It's somewhere in Compiler Options (Ctrl+Shift+F11 IIRC).

Bart

--- End quote ---

Disable theming is not a good choice in my opinion.

Bart:

--- Quote from: lainz on October 25, 2023, 06:04:10 pm ---Disable theming is not a good choice in my opinion.

--- End quote ---
Of course it's not. But it's the reason why you cannot set the color (at leats I think it is).

Bart

Navigation

[0] Message Index

Go to full version