Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with Imagelist after migration

i recently got my hands on Delphi 10.2 Tokyo and started to migrate a project made with Delphi XE4. While my application works as before, i have a strange problem with the images saved in a TImageList. This image list is connected to a TCategoryButtons group. The image list holds 16x16px transparent PNG files. The goal of showing the images transparent in the panel works during design time, but not during runtime any more. During runtime, black appears where the image was transparent before.

enter image description here

  • The TImageList has these settings:

    BkColor=clNone, BlendColor=clNone, ColorDepth=32bit, DrawingStyle=dsTransparent

  • The application uses themes

What i tried:

  • Cleaning and rebuilding the whole project
  • making changes to the image list contents (added/removed images)
  • tried different settings in the image list
  • Made a new project, added TCategoryPanel and TImageList, loaded the same images and settings, added a theme -> This works O.O

Did someone had these effects before and knows how to resolve them? Why does this work while in design time, but not in runtime?

like image 401
JP_dev Avatar asked Dec 05 '25 09:12

JP_dev


1 Answers

I solved my problems by analyzing the differences between a freshly created project file and my existing. I recreated the .dproj file by deleting it and then reapplied my old changes manually per Project - Options. This fixed my problems with the images.

like image 181
JP_dev Avatar answered Dec 06 '25 21:12

JP_dev