Hi, another isue with image transparency I noticed is a quite strange one.
If I enable using manifest to make the application theme aware under XP/Vista, TBitBtn glyphs bitmaps cannot use correctly transparency, the bitmap background (the color corresponding to pixel 1,1) is set to white rather than transparent.
I mean: create an empty form, create a TBitBtn button, load an image with gray background, enable theme awareness using manifest in project's options, compile.
The application shows the button with the bitmap which now has a white background rather grey (as originally was) or transparent (as it would be expected).
This is expecially visible on Vista, when activating the button make it turn from light gray to light blue, the bitmap background stays white rather than uniforming to new button's color.
If I explicitely set to use gray as transparent color, nothing changes: the glyph will have white background instead of gray or transparent, so as in the previous case the application seem knowing it has to replace gray whit something, but replaces it with white rather than making it transparent as in previos version was.
As counterproof, if I change the transparent color to something else, i.e. purple, the application knows it has not to replace gray and I see the glyph with original gray background.
If I disable using manifest in project options I see old style buttons and glyphs transparency is applied correctly as for I can see on my monitor.
I tried also to use manifest through an old, well known Lazarus package, the WinXP lpi I found linked somewhere in this forum some years ago, but the result doesn't change with 0.9.24 when the application is made theme aware and uses manifest glyph's transparency is not applied correctly: the background color is correctly recognized but is replaced with white rather than made transparent.
Is there a workaround or fix for that problem?
Thank you in advance for any response
Giorgio