Solved

VCL Icon

Posted on 2001-08-07
7
206 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:gklux
  • 4
  • 2
7 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 6358513
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
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6358647
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
 

Author Comment

by:gklux
ID: 6359275
I did what Kretzchmar + marquadtsaid, but nothing changed...  :-(

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

regards

Miek
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:gklux
ID: 6359309
Laste info : dcr file is in the package now, but the icon doesn't appears...


Mike
0
 

Author Comment

by:gklux
ID: 6359720
OKAY, it works now : i had created an Icon instead of a BitMap..  mpfrrrr  :-))

Thanks a lot
0
 

Author Comment

by:gklux
ID: 6359726
no comment. It was clear enought. I should try read better...

regards and Thanks .

Mike
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6359844
:-)) haha ... (no offense meant)

glad to helped you,
thanks for the points

good luck again

meikl ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 78
When I am typing into a TEdit last word repeats 7 115
LAN or WAN ? 11 81
When i run adoquery my application freezes 26 150
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now