In the Delphi Image editor I have created five bitmaps (let's call them TA1,
TA2, ... TA5) with the same names as the components in the .pas-file (the
registred names). The file is saved under the name Aunit, the same name as
the unit in the .pas-file, that contains the component type declarations and
registrer proceure. The file Aunit.dcr is saved in the folder projects\bpl,
which also contains the .bpl-file.
My problem is, that the icons don't show on the palette at all. Delphi still
shows the default icons.
The problem was first with Windows XP an now with Windows Vista, so it is
probably not due to Windows.
What did I do wrong?
Torben
> In the Delphi Image editor I have created five bitmaps (let's call them
> TA1, TA2, ... TA5) with the same names as the components in the
> .pas-file (the registred names).
Did you name the bitmaps in all caps?
> The file is saved under the name Aunit, the same name as the unit
> in the .pas-file, that contains the component type declarations and
> registrer proceure.
Do you have a {$R Aunit.dcr} statement in the unit source code?
> My problem is, that the icons don't show on the palette at all. Delphi
> still shows the default icons.
It can't find the DCR.
Gambit
Isn't it common to have the {$R Aunit.dcr} in the .dpk file?
--
Jens Gruschel
http://www.pegtop.net
> Isn't it common to have the {$R Aunit.dcr} in the .dpk file?
Either way. As long as the statement is somewhere in the project.
Gambit