- This topic has 7 replies, 2 voices, and was last updated 2 years, 10 months ago by Support.
-
AuthorPosts
-
December 16, 2021 at 7:12 pm #70625Koushik HalderParticipant
I have coded to add the SkinData on FormCreation using MemoryStream. To do this I have copied SkinData of Fluent Night and Fluent White form my DFM File to MemoryStream and tried to load my custom Procedure as LoadSkinData. I am getting error as Argument out of range. What is the solution?
I this regard, I have another question that what is the code to activate sSkinManager1.InternalSkins[1] by coding?
- This topic was modified 2 years, 11 months ago by Koushik Halder.
Attachments:
You must be logged in to view attached files.December 19, 2021 at 4:11 pm #70634SupportKeymasterThanks for demo. Which text are you trying to load?
AlphaSkin file has ‘AS’ as two first chars.
Look, maybe this old demo can help you: https://www.alphaskins.com/sfiles/demos/skinandstream.zipDecember 19, 2021 at 4:57 pm #70635Koushik HalderParticipantI have already seen your demo. I have loaded
Fluent Night (internal)
usingSkinManager
. Then I have copied Data fromDFM
File. Everything is inSkinData.txt
. Then I am trying to loadSkinData
with code atFormCreation
. Please see minutely. Everything is available to you. I have not found anything starting withAS
afterData = {
inDFM File
.December 22, 2021 at 6:26 pm #70649SupportKeymasterHi!
Can you tell me what you need to do? Why you are copying data from Dfm?
I think, I can offer a best solution.PS. Open any *.Asz file in the Hex-editor, you will see ‘AS’ there.
December 23, 2021 at 5:58 am #70662Koushik HalderParticipantMy requirement is very simple. I don’t like to allow me like simple user to extract my own
AlphaSkin
using PE Editors likePE Explorer
,Resource Tuner
andResource Hacker
etc. So I have decided not store any Binary Data to my PE. I will load Binary Data into Memory Stream then I will call it at Runtime. So I need to create to createAlphaSkin
from Memory Stream using Binary Data. So what is the solution of conversion?January 3, 2022 at 7:15 am #70672SupportKeymasterLook the attached demo, please.
New code has// Added by Serge
there.Attachments:
You must be logged in to view attached files.January 3, 2022 at 12:11 pm #70677Koushik HalderParticipantYour solution is working like a charm! Thanks!
However one thing is renaming. I will add 3 skins by skin data in sSkinManager1. I need to activate sometimes ItemID=0 or ItemID=1 or maybe ItemID=2. How to activate this item IDs in sSkinManager1 by coding?January 3, 2022 at 1:20 pm #70681SupportKeymasterYou can define a SkinName for the each internal skin and choose this name later in the sSkinManager1.SkinName property. I have added a SkinName specifying in the demo.
-
AuthorPosts
- You must be logged in to reply to this topic.