Highlight (glow) checked TsCheckBox

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35167
    SzakiLaci
    Participant

    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

    #48268
    SzakiLaci
    Participant

    … any ideas how to do that ? Thanks !

    #48272
    Support
    Keymaster

    I have prepared a small demo, look it please :

    http://www.alphaskin…monsection2.zip

    #48274
    SzakiLaci
    Participant
    'Support' wrote:

    I have prepared a small demo, look it please :

    http://www.alphaskin…monsection2.zip

    WOW ! You are amazing :-)))))))

    Exactly what I've asked and even more !

    This should go to the FAQ too, because it's VERY informative and opens ALL kind of new possibilities.

    You've just convinced me to buy the commercial version. (I just need some more money… Hungarian financial crisis is still making my life impossible, had my first PAYING customer in 6 month ;( But I'm sure this new look will turn my luck !)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.