Changing color of a (skinned) component

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33414
    Zohar Gilboa
    Participant

    Hello.

    Suppose I want to have various panels with the same characteristics except for color, is there a way to change the color of a panel (suppose a TsPanel with a color gradient) during runtime? Or do I have to create different objects, one for each color, in the skin editor program?

    Thank you,
    Zohar

    #41127
    Support
    Keymaster

    Hello Zohar
    I can suggest two ways :
    1. Set the sPanel.SkinData.SkinSection property to 'GROUPBOX' and sPanel.SkinData.CustomColor to True. You will be able to change sPanel.Color property as you want in this case.
    2. Make any amount of new SkinSections in used skin, you can make any different kinds for different panels and use them later after defining of SkinData.SkinSection property.

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