add 2 different skins to third party panels

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #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 1 post (of 1 total)
  • You must be logged in to reply to this topic.