[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

D3 Component Pallete Icons

Posted on 1998-09-12
9
Medium Priority
?
235 Views
Last Modified: 2010-04-06
I have a non-visual component that I want to add to the pallete but I want to use an icon file to represent it on forms and the component pallete. How do I tell Delphi that I want to use this instead of that (standard?) multi coloured, many shaped thing that usually comes up ?
0
Comment
Question by:jelkiors
[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
  • 5
  • 4
9 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1339546
If it's too big then you can not do that...if the size is 16X16 or 32X32 in pixels then you can open the file you want copy the bitmap, open the ImageEditor and paste there....then save it as a .dcr file and that's all....

PS, if the bitmap is larger then 32X32 pixels it still will be pasted but won't show up in the image editor....only part of it will be shown....

Regards,
Viktor Ivanov
0
 

Author Comment

by:jelkiors
ID: 1339547
Sorry viktornet, I've already got the icon as a 32x32 icon file which i created in image editor. If I need to save the icon as a resource do i need to give it any particular name for delphi to link it?

I'm using the following names, please be more specific!

Package file : SinisterSoftware.dpk
Component PAS file: SSPackTable.pas
Class Name: TSSPackTable

Please give me specific instructions. At the moment I have a 32x32 16 color icon file named SSPackTable.ico

hope this helps you to help me. I've been accurately case sensitive to aid you.

Regards

Julie

0
 
LVL 10

Accepted Solution

by:
viktornet earned 100 total points
ID: 1339548
Here is how you name it....

SSPackTable.pas -> SSPackTable.dcr
TSSPackTable -> TSSPackTable

After you create a Bitmap for the component you need to name it TSSPackTable

If you need an example .pas file with a .dcr file I'll send you an empty .pas that has just some kinda of Class e.g. TMyButton and show you how to do it in the .dcr

Regards,
Viktor Ivanov
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!

 
LVL 10

Expert Comment

by:viktornet
ID: 1339549
Would you please send me the ICO file and I'll send you the .dcr with a sample .pas file....
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1339550
Would you please send me the ICO file and I'll send you the .dcr with a sample .pas file....
My e-mail is viktor@megsinet.net
0
 

Author Comment

by:jelkiors
ID: 1339551
Thanks, Viktornet

cu again sometime
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1339552
Did it work???

Regards,
Viktor Ivanov
C'Ya
0
 

Author Comment

by:jelkiors
ID: 1339553
Yep, kinda.

I think what I was doing wrong before was trying to use an icon in the resource rather than a pure bitmap.

Anyway, it's sat on my pallete as we speak.

By the way, I've just posted another question about exclusive database tables if you fany having a look at it for me, there's another 50 points in it for you. Answer pretty quick would be good 'cos I've managed to get the computer all to myself without any distractions for about the next 8 hours 'cos the girlfriends gone out.

Thanx,

c u in my other question ?



0
 

Author Comment

by:jelkiors
ID: 1339554
Yep, kinda.

I think what I was doing wrong before was trying to use an icon in the resource rather than a pure bitmap.

Anyway, it's sat on my pallete as we speak.

By the way, I've just posted another question about exclusive database tables if you fany having a look at it for me, there's another 50 points in it for you. Answer pretty quick would be good 'cos I've managed to get the computer all to myself without any distractions for about the next 8 hours 'cos the girlfriends gone out.

Thanx,

c u in my other question ?



0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

649 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