Loading a skin from memory stream Root › Discussions › AlphaSkins This topic has 3 replies, 3 voices, and was last updated 12 years, 10 months ago by Romans11. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 21, 2012 at 8:03 am #35007 Romans11Participant Hello! I am looking for a way to load Alpha skin directly from memory stream instead of *.asz file. I had an idea like this: MStream:=TResourceStream.Create(HInstance,'Office2007Blue',RT_RCDATA); AlphaSkin.LoadFromStream(MStream); but I didn't find any alternative to load it. Is it possible, and if yes, how can I do that? January 23, 2012 at 6:48 am #47620 WitcherParticipant Hello! I found similar question in Russian part of forum. There is is solution: Code: const SkinName = 'Skin loaded from stream'; begin sSkinManager1.IsDefault := True; sSkinManager1.InternalSkins.Add; sSkinManager1.InternalSkins[sSkinManager1.InternalSkins.Count – 1].Name := SkinName; sSkinManager1.InternalSkins[sSkinManager1.InternalSkins.Count – 1].PackedData.LoadFromfile('c:SkinsAir.asz'); sSkinManager1.SkinName := SkinName; sSkinManager1.Active := True; You can try to use LoadFromStream instead LoadFromfile. I hope, it will be useful for you. January 23, 2012 at 7:59 am #47626 SupportKeymaster Hello! Also, maybe this demo can help you. January 23, 2012 at 7:12 pm #47633 Romans11Participant Big thanks! This really helped me. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Discussions › AlphaSkins