procedure TForm1.Button1Click(Sender: TObject);
begin
SkinDir := ExtractFilePath(Application.ExeName)+'skins';
if SelectSkin(SkinName, SkinDir, stPacked) then begin
ms := TMemoryStream.Create;
ms.LoadFromFile(SkinDir + '' + SkinName + '.asz');
Button2.Enabled := True;
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
sSkinManager1.IsDefault := True;
sSkinManager1.InternalSkins.Add;
sSkinManager1.InternalSkins[sSkinManager1.InternalSkins.Count – 1].Name := SkinName;
sSkinManager1.InternalSkins[sSkinManager1.InternalSkins.Count – 1].PackedData.LoadFromStream(ms);
sSkinManager1.SkinName := SkinName;
sSkinManager1.Active := True;
Label1.Caption := SkinName;
end;