How to add Skin using SkinData ?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70634
    Support
    Keymaster

      Thanks 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.zip

      #70635
      Koushik Halder
      Participant

        I have already seen your demo. I have loaded Fluent Night (internal) using SkinManager. Then I have copied Data from DFMFile. Everything is in SkinData.txt. Then I am trying to load SkinDatawith code at FormCreation. Please see minutely. Everything is available to you. I have not found anything starting with ASafter Data = {in DFM File.

        #70649
        Support
        Keymaster

          Hi!
          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.

          #70662
          Koushik Halder
          Participant

            My requirement is very simple. I don’t like to allow me like simple user to extract my own AlphaSkin using PE Editors like PE Explorer, Resource Tuner and Resource 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 create AlphaSkin from Memory Stream using Binary Data. So what is the solution of conversion?

            #70672
            Support
            Keymaster

              Look the attached demo, please.
              New code has // Added by Serge there.

              Attachments:
              You must be logged in to view attached files.
              #70677
              Koushik Halder
              Participant

                Your 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?

                #70681
                Support
                Keymaster

                  You 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.

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