ListView transparent icon

Started by Fred Tomke, March 06, 2009, 08:04:05 AM

Previous topic - Next topic

Fred Tomke

Hello,

I have a listview. An icon will be shown in a cell. The icon has a transparancy. The icon's extends mask the selection bar. In the Windows Explorer the icon doesn't mask the selection bar.

Did anybody already solve this somehow?

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

Have you tried making your icons background color 192,192,192?
I haven't tested it so I'm not sure if that's the answer....
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Fred Tomke

Sorry, I forgot to note:

Yes I tried 192,192,192 in the back with bmp and I tried ICO with transparent backcolor (this is my standard instead of bmp)

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

I had this problem with the Z/Tab Order pane in Studio, and the only way around it was to draw each list item with custom painting code that painted the "selected" background first, then the transparent icons over top of that. This might be possible for the list view, but it is a lot of work with potential undesirable side effects.

I think your images should highlight as expected if you make sure they do not have transparency. Try importing them as bitmaps with a white background. I did a quick test with a bitmap that had a pink background, and this appeared to highlight correctly.
Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

Ok thanks! That sounds good. I will have a try.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]