I try to modernize a legacy Delphi VCL project using Delphi 10.3.3. I can compile and build the application without any problem. The only problem is backgrounds of transparent PNG are displayed as black in runtime.
Here is what I do:
- Add MainMenu1 to the form and create menu items.
- Add ImageList1.
- Change ImageList1's ColorDepth to cd32Bit.
- Add transparent PNG files into ImageList1.
- Connect ImageList1 to MainManu1.
Here is the result in runtime:
These steps work perfect in a new Delphi 10.3.3 VCL project but there are black backgrounds in this legacy project. What can I do to solve the black background issue?