adding/changing component icon lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- tatamata · 2011-07-12 21:13 Lazarus 0.9.30, fpc 2.4.2 I made a new package without components icon. Now I want to add it. I have prepared mycomponent.lrs from 24x24 .png icon with lazres, put {$I mycomponent.lrs] in initialization section, But still, when I install the package, my components don't have icons, only default one... What could be the reason. What did I missed to do? ---------------------------------------------------------------------- Bart · 2011-07-12 21:33 In this wiki article there is a section about adding icons to your component. Maybe this helps? Bart ---------------------------------------------------------------------- tatamata · 2011-07-13 04:46 Bart, I think I did exactly what described in the wiki article... Can I send you the package by e-mail to check what is wrong? ---------------------------------------------------------------------- circular · 2011-07-13 07:50 Maybe the icon name is not equal to the class name. The first line of the lrs must look like : LazarusResources.Add('TMyClassName','PNG',[ ---------------------------------------------------------------------- tatamata · 2011-07-13 16:27 circular, yes, the name was like component name, I didn't know it must be class name instead. Thanks! ---------------------------------------------------------------------- circular · 2011-07-13 17:28 You're welcome. I had the same problem.