-1

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 ?

Ken White
  • 123,280
  • 14
  • 225
  • 444
Fabien Fert
  • 95
  • 2
  • 11
  • possible duplicate of [Best way to make a component icon in Delphi XE using only the built in tools](http://stackoverflow.com/questions/6999939/best-way-to-make-a-component-icon-in-delphi-xe-using-only-the-built-in-tools) – Ken White May 12 '15 at 15:55
  • brcc32 doesn't support png. MS res compiler rc does. Use that to compile the resource script. – David Heffernan May 12 '15 at 18:02
  • Thank you for your help. No need extra compiler or ressource editor.. it work well with the standard editor. Just need BMP proper files and using standard ressource editor. – Fabien Fert May 12 '15 at 20:06
  • Do it your way then. But you'll have to live with the large size of those uncompressed images. – David Heffernan May 12 '15 at 20:32
  • oh !! you are right.. 65,7Kb.. following your comment i change the size... now its only 4.2 kb. THank you – Fabien Fert May 13 '15 at 09:25

1 Answers1

0

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

Fabien Fert
  • 95
  • 2
  • 11