Search code examples
delphicomponentspalettedelphi-xe8

How to Put Icones in RadStudio XE8 IDE palette for new component?


I wrote a set of few components named : - TUser - TRESTAccess - TServerAccess

Then i create 3 PNG image 100x100 with same name than component (in the same directory than the BPL and the .PAS files)

I wrote a .RC file include in my package.

But can't compile : invalid format ?

does someone have any ideas how can i make the icones appear in the component palette ?


Solution

  • No need to compile BRCC32

    • I used image 128x128 BMP format.
    • I click on Project / Ressource and Image
    • I added the image and rename identifier as the name of my component
    • Then uninstall package (then closed Rad Studio XE8, if not i get and access violation)
    • Then install my package again.

    IT WORKS ! (except transparency : in the palette no transparency applied, but if i drop the component in my form, the transparency is applied !)

    enter image description here