Dear Developer,
Is this possible to do this somehow at runtime? I mean if a TsCheckbox is checked, the background of the text would change to yellow or red. (depending on… like “Deleted” would be RED, “Available” would glow green… etc)
[attachment=5653:Glowing_TsCheckBox.png]
Of course, it can be done by the simple way:
Code:
cb.SkinData.CustomColor := cb.SkinData.Skinned(True) and cb.Checked;
//cb.SkinData.FFocused := cb.Checked;
if cb.Checked then
cb.Color := clRed
else
cb.Color := clSkyBlue;
But the end result is almost as ugly as it was before unskined:
[attachment=5654:CustomColored_TsCheckBox.png]
So the real question is: is it possible to manipulate a control element's skin at runtime? And if yes, than HOW?
(Found nothing in help nor in FAQ.)
Thanks for your help !
Cheers,
Laci