VCL Icon

Hi all,

 I wrote a component, but now i would like to add an Icon in order to view this icon into the Delphi's components palette.

 How could i do ?

Regards

Mike
gkluxAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kretzschmarConnect With a Mentor Commented:
create a .res file with the workshop-tool, which comes with delphi,
create there a bitmap 24x24 pixel with the same name as your component

include this res file with
{$R filename) in your vcl.source

just from head could be that i missed something

meikl ;-)
0
 
robert_marquardtCommented:
It has to be the class name of your component in uppercase.
The package editor (see Tools menu) can create and edit .dcr files.
Do not forget to add the .dcr file to the package project.
0
 
gkluxAuthor Commented:
I did what Kretzchmar + marquadtsaid, but nothing changed...  :-(

How do I add the .dcr file into the package ?

regards

Miek
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
gkluxAuthor Commented:
Laste info : dcr file is in the package now, but the icon doesn't appears...


Mike
0
 
gkluxAuthor Commented:
OKAY, it works now : i had created an Icon instead of a BitMap..  mpfrrrr  :-))

Thanks a lot
0
 
gkluxAuthor Commented:
no comment. It was clear enought. I should try read better...

regards and Thanks .

Mike
0
 
kretzschmarCommented:
:-)) haha ... (no offense meant)

glad to helped you,
thanks for the points

good luck again

meikl ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.