Custom component creation - how to add small icon representing component in Tool Palette?

Posted by Wodzu on Stack Overflow See other posts from Stack Overflow or by Wodzu
Published on 2012-04-07T17:25:34Z Indexed on 2012/04/07 17:30 UTC
Read the original article Hit count: 191

Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette.

I've read that I should name my two other BMP files which are contained in DCR file like this:

MyComponentName16 [for 16x16 BMP file]

MyComponentName32 [for 32x32 BMP file]

Unfortunately this does not seem to work, I've tried to restart Delphi few times in hope that it might be the case of not refreshing something, but without any success.

Any ideas?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about Icons