Started by fred_tomke ·
2009-03-06 16:04 UTC ·
4 replies · SMF topic #626
fred_tomke
2009-03-06 16:04 UTC
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
bazzacad
2009-03-06 16:59 UTC
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....
fred_tomke
2009-03-06 18:09 UTC
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
owenwengerd
2009-03-07 05:20 UTC
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.
fred_tomke
2009-03-07 12:18 UTC
Ok thanks! That sounds good. I will have a try.
Fred