Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE8 enterprice, tool palette icons disappearing for my own components



Permlink Replies: 2 - Last Post: Feb 9, 2017 11:41 PM Last Post By: Jan Dijkstra
Jan Dijkstra

Posts: 206
Registered: 11/4/99
XE8 enterprice, tool palette icons disappearing for my own components
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 9, 2017 6:21 AM
Like subject states.

I have made a handful of packages that contain various components. For most of these, I have created simple 24x24 16 color bitmap icons using the resource workshop. The .res file is added to the design time package project. Each bitmap has the name of the associated component, in all caps. So, for my TNumEdit control, the bitmap resource is named TNUMEDIT

For the most part, this works out. My icons appear as they should, and as I expect them to appear.

However, there are times that the IDE, for some unexplicable reason, forgets my icons and shows the default one instead.

Right now I'm looking at one of my component tabs in the IDE, and out of the 16 components there, 13 are not displaying the icon I've setup for them. The weird part is that for 3 of them, the icon is still shown. All components are defined in the same runtime package, and all icons for them are in one and the same .res file in one and the same design time package. 3 other tabs have all their icons still in tact, in 4 others all icons have been replaced with the build-in default one, and in the final tab only 1 out of 3 component is still displaying the icon I've defined for them.

The weird part is, this only happens to components I've created. All of the components that came with the enterprise installation don't show this weird behaviour, so it must be caused by something I did wrong. But I have no idea what that could be.

When the icons disappear, they stay gone for the entire remainder of the IDE session. I have to close the IDE and restart to get them back.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: XE8 enterprice, tool palette icons disappearing for my own components
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 9, 2017 11:26 AM   in response to: Jan Dijkstra in response to: Jan Dijkstra
Jan wrote:

I have made a handful of packages that contain various components.
For most of these, I have created simple 24x24 16 color bitmap icons
using the resource workshop. The .res file is added to the design time
package project. Each bitmap has the name of the associated component,
in all caps. So, for my TNumEdit control, the bitmap resource is named
TNUMEDIT

You should also consider adding 16x16 and 32x32 images, to handle IDEs that
run at different layouts and resolutions. Simply follow the same steps as
your 24x24 image, but append 16 and 32 to the resource names, respectively,
eg: TNUMEDIT16 and TNUMEDIT32. The IDE will pick the appropriate image
as needed. If you don't do this, the IDE has to stretch/shrink the 24x24
image as a fallback, which may not look as good as using native 16x16 and
32x32 images.

--
Remy Lebeau (TeamB)
Jan Dijkstra

Posts: 206
Registered: 11/4/99
Re: XE8 enterprice, tool palette icons disappearing for my own components
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 9, 2017 11:41 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Jan wrote:

I have made a handful of packages that contain various components.
For most of these, I have created simple 24x24 16 color bitmap icons
using the resource workshop. The .res file is added to the design time
package project. Each bitmap has the name of the associated component,
in all caps. So, for my TNumEdit control, the bitmap resource is named
TNUMEDIT

You should also consider adding 16x16 and 32x32 images, to handle IDEs that
run at different layouts and resolutions. Simply follow the same steps as
your 24x24 image, but append 16 and 32 to the resource names, respectively,
eg: TNUMEDIT16 and TNUMEDIT32. The IDE will pick the appropriate image
as needed. If you don't do this, the IDE has to stretch/shrink the 24x24
image as a fallback, which may not look as good as using native 16x16 and
32x32 images.

--
Remy Lebeau (TeamB)

Thanks for that tip. Although it's not really necessary. All these components are only for in-house use, and all of our IDE's are configured in classic undocked mode, with the registry hack applied to get the floating form editor.

But it still does not answer my original question ;)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02