Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageList promises me Alphablending, but how do I enable it?

I want my buttons to have images with alphablending on them.
As instructed I've included a TXPManifest component on my mainform.
Below are some images I've loaded into my project.

Imagelist editor

However my BitBtn, which is linked to the imagelist via an ActionList still looks off.

BitBtn is off <<-- It looks like this at runtime, Yikes!

How do I get Delphi 2007 running on my Windows 7 laptop to actually use the alpha channel the ImageList keeps teasing me with?

In response to @RRUZ, here are the imagelist properties:
enter image description here
(Note the absence of a colordepth property)

EDIT
The alpha-blending does work with the TMS AdvGlowButton: AdvGlowButton with alphablending correct
So it's probably not a ImageList issue, as much as it is an BitBtn issue.

UPDATE 2
Downloaded and installed PngComponents. Putting a TPNGImageList on a blank form instantly crashes D2007. (Maybe something in the settings/path/etc, but I'm drifting too far from the original issue so I'm dropping the png pursuit).
So that doesn't work.

like image 509
Johan Avatar asked Dec 15 '11 20:12

Johan


1 Answers

I suggest you to refer to Anders Melander's Blog.

Hes has published 2 relevant posts both related to alpha blending under Delphi 2007:

  • Alpha Blended Splash Screen in Delphi - Part 1
  • Alpha Blended Splash Screen in Delphi - Part 2

Very instructives.

like image 139
menjaraz Avatar answered Sep 21 '22 01:09

menjaraz