Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Icons on component palette

64 views
Skip to first unread message

Torben Amtrup

unread,
Aug 6, 2008, 5:59:01 PM8/6/08
to
I have a Delphi 5 and will create five new components in a package. I
succeded creating the component package, which appears in the palette, and I
can use the components in a program. But I have a problem with the icons, so
Delphi uses default icons.

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

Remy Lebeau (TeamB)

unread,
Aug 6, 2008, 6:02:33 PM8/6/08
to

"Torben Amtrup" <tor...@amtrup.dk> wrote in message
news:489a...@newsgroups.borland.com...

> 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


Jens Gruschel

unread,
Aug 7, 2008, 3:24:15 AM8/7/08
to
> Do you have a {$R Aunit.dcr} statement in the unit source code?

Isn't it common to have the {$R Aunit.dcr} in the .dpk file?

--
Jens Gruschel
http://www.pegtop.net

Remy Lebeau (TeamB)

unread,
Aug 7, 2008, 1:18:00 PM8/7/08
to

"Jens Gruschel" <nos...@thisurldoesnotexist.com> wrote in message
news:489aa2b4$1...@newsgroups.borland.com...

> 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


0 new messages