AD
Administrator
Syncfusion Team
October 18, 2002 10:58 AM UTC
;-) Found the solution myself.
It seems as if there is something not working completely right when using imageLists at design-time (or am I missing something here). A lot of discussion around this on msdn/newsgroups.
When you add correctly designed XP icons (24 bit colour + 8 bit alpha = 32 bit) into imageLists at designtime, the alpha channel seems to be ignored.
However, if you add the icons either
a) as embedded resources
See example "embedIcon.cs"
(Icons are included in the project, as "Embedded resource")
b) at runtime
See example "runtimeIcon.cs"
the imageList will hold and handle the alpha channel correctly.
Of course, you also need a .manifest-file together with the .exe in order to make the alpha-blending work.
(Sorry for the rough examples, too little time for this...)
/M