add 2 different skins to third party panels

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33271
    Qwark
    Participant

    If I have 2 TPanels on a frame, is it possible to apply different skins to them?
    The TsPanels have a SkinData property but my TPanels haven't.

    #40619
    Support
    Keymaster

    In the AlphaControls v6.45 you can do it using SkinProvider.OnAddItem event.
    Write here a code like this :

    CODE
    procedure TForm1.sSkinProvider1SkinItem(Item: TComponent; var CanBeAdded: Boolean; var SkinSection: String);
    begin
      if Item = Panel1 then SkinSection := 'HINT';
    end;


    Standard panel must be defined in the SkinManager.ThirdParty property for skinning.

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