Imagelist icon "Invalid Picture" problem.
by Whitey » Wed, 18 Jan 2006 04:59:41 GMT
Hey all,
I'm trying to give an XP facelift to a VB6 application. I'm using a
listview control in report format, and I want to add some high color
icons to spruce up the look of it. However, when I try to load the
images into the control at design time, it keep throwing an "invalid
picture" error.
Could anyone suggest a way to make the imagelist friendly to 256 color
icons?
Thanks,
Whitey
Re: Imagelist icon "Invalid Picture" problem.
by Jay Taplin » Wed, 18 Jan 2006 07:23:22 GMT
What is the color depth of the icons you are trying to use? The
ImageList
supports 256, or at least the version I just tested does (v6.0 SP6).
Feel free to e-mail me the icon files you are trying to use, if you'd
like
me to test them.
Jay Taplin MCP
Re: Imagelist icon "Invalid Picture" problem.
by Whitey » Thu, 19 Jan 2006 01:07:48 GMT
The images I'm trying to use are 32 bit, and they exceed the 256 color
limit. I wasn't sure if there was a way to supercede that limitation.
I've read that I can't use a resource file as a substitute for an
imagelist. So, I think that I'm going to be stuck with 256 color
icons.
Thanks for your help,
Whitey
Re: Imagelist icon "Invalid Picture" problem.
by Jay Taplin » Thu, 19 Jan 2006 10:58:29 GMT
I was just doing a little research on 32 bit icons... you may want to be
careful with trying to use them. Systems that have a color depth of less
than 32 bit may render them strangely. Since most people are not yet at
that resolution, your application may end up with an unexpected look.
However, you know better what your target user is, so maybe this is not an
issue.
Another option may be to try a third party control. vbAccelerator has a
nice one:
http://www.**--****.com/
There is also an ImageList that supports 32 bit, with code and documentation
about that very issue to boot!
Good luck.
Jay Taplin