[Solved] Transparent background for custom images
Posted: Wed Jul 26, 2006 8:54 am
Hello,
I created custom images for my teeTree which I put in a imageList. In the imageList, I've set a transparent color (clRed in my case). Unfortunately, the pixels which should be transparent are white.
My teeTree has a gradient background, and I think this can be the reason why it doesn't work.
I resume :
1. creation of images with clRed pixels for the transparent parts
2. adding the images in a imageList
3. Linking the imageList to the treeview
4. Set the imageList transparentColor to clRed (works fine in the list)
5. Set a gradient background to the TeeTree
6. In the program, the transparent pixels are white instead of being transparent.
Maybe you can confirm me it is a problem with TeeTree. And if it is the case, is there a way to solve this problem ?
I created custom images for my teeTree which I put in a imageList. In the imageList, I've set a transparent color (clRed in my case). Unfortunately, the pixels which should be transparent are white.
My teeTree has a gradient background, and I think this can be the reason why it doesn't work.
I resume :
1. creation of images with clRed pixels for the transparent parts
2. adding the images in a imageList
3. Linking the imageList to the treeview
4. Set the imageList transparentColor to clRed (works fine in the list)
5. Set a gradient background to the TeeTree
6. In the program, the transparent pixels are white instead of being transparent.
Maybe you can confirm me it is a problem with TeeTree. And if it is the case, is there a way to solve this problem ?