VCL Icon

Posted on 2001-08-07
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 ?


Question by:gklux
  • 4
  • 2
LVL 27

Accepted Solution

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 ;-)
LVL 11

Expert Comment

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.

Author Comment

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

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


Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.


Author Comment

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


Author Comment

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

Thanks a lot

Author Comment

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

regards and Thanks .

LVL 27

Expert Comment

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

glad to helped you,
thanks for the points

good luck again

meikl ;-)

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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