Solved

VCL Icon

Posted on 2001-08-07
7
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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