Change the background color of a form

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36994
    Ronaldo Souza
    Participant

    Hi,

    I'd like to change the background color of a form, which is simple when skins are off: myform.color := clBlue or whatever; but this doesn't work when skins are enabled.

    So, how can I change a form's background at runtime when skins are enabled?

    TIA!

    Ronaldo

    #55108
    Support
    Keymaster

    Hello!

    Try to change the TsSkinProvider.SkinData.CustomColor to True and you can use the Color property of the form then.

    #55117
    Ronaldo Souza
    Participant
    'Support' wrote:

    Hello!

    Try to change the TsSkinProvider.SkinData.CustomColor to True and you can use the Color property of the form then.

    Thanks, it works!

    Ronaldo

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