Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

TButton images missing in Delphi 10S VCL app

$
0
0

Complex one here.

I have a large button image TImageList repository on a common form with 226 24x24 bmp images. I use these images to source imagery for all toolbars and TButtons in a rather large application. Some TButtons in forms are fed via TActionList items while others link directly to the TImageList object on the common form.

In my main application, all ToolBar buttons have their images. All form buttons have none when executing despite displaying perfectly in the form designer. Not just a blank image, but no image at all, with the Caption text centred in the button and no space for an icon.

However, in a test program in the same project group, linked to the same common form and using the same image repository, all TButton instances show their images as expected.

I have started debugging the VCL library code that paints the buttons in the main application (well - fails to...) and seen that a handle for the TImageList component is nil in the main application, but valid in the test program.

To add to the complexity, this is a 'suddenly' situation since these images used to show just fine in all circumstances.

Anybody have any suggestions how I can fix this?


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>