Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2017, 03:18 PM
DbBanjo DbBanjo is offline
Member
 
Join Date: Jan 2005
Location: Maryland
Posts: 77
Default Default tool palette icon - location?

Howdy,

Does anyone know where Delphi stores the image used for the
'default' tool palette image \ icon? To be clear, this is the image
(bitmap, I assume) which is displayed when no image \ icon is
present for a item within the tool palette. An example of this is
attached to this post.

For ref, I'm using Delphi, 10.1, Berlin and I've noticed most of
the tool palette images are stored within the Windows registry in
locations such as:
HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\
Palette\Cache\dcldxtilecontrolrs24.bpl\
Vcl.Controls.TControl.TdxTileBar\Icon16 - Icon32 (hex values)

A few exceptions exist (no entry within the registry) & then the
default tool icon is displayed.

Thanks,

DbBanjo (Marc Bolen)
Attached Images
File Type: jpg DelphiBerlin_DefaultComponentBitmap.jpg (1.1 KB, 47 views)
Reply With Quote
  #2  
Old 01-02-2018, 08:34 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,270
Default

TdxTileBar is DevExpress, this is not a default Delphi component
They have a very nice forum on where they will answer these kind of questions

Since I no longer use them anymore I cannot help with this specific question
Reply With Quote
  #3  
Old 01-02-2018, 02:21 PM
DbBanjo DbBanjo is offline
Member
 
Join Date: Jan 2005
Location: Maryland
Posts: 77
Default

Howdy Norrit,

Thanks for taking the time to reply, but it appears I wasn't
clear in my original question. To be clear: I'm not asking
about the specific use of TdxTileBar or any individual component.
I'm asking about Delphi's use of a 'default' tool palette image \ icon
for 'any' component (which doesn't have a defined tool palette image).
I just used my occurrence of TdxTileBar as an example.
Reply With Quote
  #4  
Old 01-02-2018, 03:48 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,270
Default

I guess this is either stored in a .exe or a .dll that is shipped with Delphi.
Unfortunately I cannot look at where it's exactly stored, no Delphi installed at this PC, but with a resource editor you should be able to see what is in the Delphi resources.
Reply With Quote
  #5  
Old 01-02-2018, 06:26 PM
DbBanjo DbBanjo is offline
Member
 
Join Date: Jan 2005
Location: Maryland
Posts: 77
Default

Howdy,

Yes, it's probably embedded within one of the Delphi
executables (.Exe, Dll, Bpl). I was simply hoping it might
be written out into the registry in the same manner as I
described in my original post (newer registry format for
components).

Thanks,
Reply With Quote
  #6  
Old 01-03-2018, 07:44 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,270
Default

This newer registry format (if it is, I have never looked at this) is most likely for new (or own) components, if you set the icon yourself or through setup.
But if no Icon is found it displays this default, it would be strange if that is also in a registry instead of a binary.
But what is your purpose, you don't like the default icon and want to have a different one for your own development environment? Don't see any advantage in this, just time consuming to figure out...
Reply With Quote
  #7  
Old 01-03-2018, 10:20 AM
DbBanjo DbBanjo is offline
Member
 
Join Date: Jan 2005
Location: Maryland
Posts: 77
Default

Howdy Norrit,

You appear to be echoing what I mentioned in my
original post (ie: 'A few exceptions exist (no entry within
the registry) & then the default tool icon is displayed.').
With this in mind, I believe it's safe to say we are in
agreement - Lol.

As for this default icon being stored in a binary vs
the registry: I would have agreed with you until I started
using a much newer ver. of Delphi (moved from 7 to 10.1) &
I noticed a fair amount of icon storage within the registry.

My purpose with this default icon question? Besides simply
obtaining the answer, I would like to know a more about
the info. stored by Delphi in the registry (especially since
this info. appears to be undocumented for the most part).

As for being time consuming to figure out: I agree & a lot
of things in life fall in this category. You mentioned not having
Delphi installed on your current system & I can certainly see
why this would be a hindrance for you.

Thanks,
Reply With Quote
  #8  
Old 01-03-2018, 02:24 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,270
Default

Hi Banjo,

Yes, we agree ;-)
Nowadays I only do Delphi on older legacy stuff. I have a different pc on which I have Delphi XE7, but never bothered to look at it's registry.

Perhaps you can ask Embarcadero (Idera) to document their registry usage somewhat. I doubt they want to do this, since they're just trying to keep Delphi alive with as little as possible effort (my oppinion).

But there is a reason I moved away from Delphi, and the changes in management (Borland - CodeGear - Embarcadero - Idera) and the ways they are trying to make money out of Delphi are part of this.
The other is the roadmap they're taking (this has somewhat tied to the many overtakings in the years). So many failed/dead horses they've betted upon (who remembers CLX, Delphi.NET or RadPHP) and most likely the architecture change (changes in registry you see) is part of one of them.
My oppinion on Delphi nowadays is that they're betting upon too many different horses, and therefor they're forgetting their core (RAD - Rapid Application Development). And this RAD is overtaken by other languages, which can do this many times faster and better. This combined with the very high pricing was reason enough to say bye bye.
But still I have the love for Delphi, I grew up with it, and I'm still happy if I can do some work on our legacy stuff. So don't get me wrong, I'm not a hater, just a person who fell in love with another...

But again, I've never looked at the Delphi registry intensively, just did some minor tweaks back in the days...
Reply With Quote
  #9  
Old 01-04-2018, 09:17 AM
lexd lexd is offline
Senior Member
 
Join Date: Feb 2015
Posts: 268
Default

I agree Delphi is beating on to many horses.
combining too much in one product
and pricing them selves out of the market.

To find a icon like this is so hidden in Delphi I would rather take a screen snap image and make the Icon from out of it for all the hassle.

And so much code is to hide functionality from users that in the end builds up makes slower code in the end.
But many horses mans many options to users too. And Microsoft will not support Delphi any away so its better some one considers the horses. That not having the horse you need I guess but not at the cost to price out of the market.
Reply With Quote
  #10  
Old 01-05-2018, 12:03 AM
DbBanjo DbBanjo is offline
Member
 
Join Date: Jan 2005
Location: Maryland
Posts: 77
Default

Howdy Lexd & Norrit,

Ok, ok - I truly didn't mean to open the floor for a
'What's to hate about Delphi' discussion - Lol!

I do agree: the simplest route would be to obtain
this default icon via a screen shot. As I mentioned
earlier, my goal was to obtain more info. on how current
ver's of Delphi are using the Registry. Honestly, I'm quite
pleased to see these component icons residing in the registry.
Lol - while I was able to extract icons via resource editor or
problematically, I would much rather read this info. from the
registry (simpler & often faster).

Thanks to all for their input!
Reply With Quote
Reply

Tags
palette bitmap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.