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?
You may try to clear the IDE package cache:
HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\Package Cache\
MyPackage.bpl
)HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\Palette\Cache\
MyPackage.bpl
)Source: http://www.lnssoftware.ca/blog/?p=140
As another workaround you might try to run Delphi IDE with undocumented command line parameter:
c:\Program Files (x86)\CodeGear\RAD Studio\6.0\bin\bds.exe -nocache
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With