OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on March 06, 2009, 08:04:05 AM

Title: ListView transparent icon
Post by: Fred Tomke on March 06, 2009, 08:04:05 AM
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
Title: Re: ListView transparent icon
Post by: BazzaCAD on March 06, 2009, 08:59:38 AM
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....
Title: Re: ListView transparent icon
Post by: Fred Tomke on March 06, 2009, 10:09:31 AM
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
Title: Re: ListView transparent icon
Post by: owenwengerd on March 06, 2009, 09:20:07 PM
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.
Title: Re: ListView transparent icon
Post by: Fred Tomke on March 07, 2009, 04:18:06 AM
Ok thanks! That sounds good. I will have a try.

Fred