Using TBitmapLinks with the FireMonkey Style Designer

后端 未结 2 491
余生分开走
余生分开走 2021-01-02 02:40

I have been styling FireMonkey controls, but there is one issue that I have been having some real issues with, and that is how to incorporate bitmaps into FireMonkey styles

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 03:28

    I'd like to verify Andreas solution. This is what I did.

    1. Exported the .png as Andrea described
    2. Opened the .png in Photoshop and changed some of the various objects
    3. Saved the .png from Photoshop
    4. Loaded it into the temp project TImage I used to export it in step 1.
    5. Alt+F12 and copied the png content into the clipboard
    6. Pasted it directly into my .style file (with Ultraedit)
    7. Loaded the .style file in the style editor in Delphi

    All the color changes was emediatly reflected in my design. Possibly there is a simpler way, but I don't know it. I did this in XE10 Seattle.

提交回复
热议问题