I've got a base image for an item and some common adornments. The adornments
reflect the state of the item being shown in the list. Stuff like padlock
for locked, cogs for in-use and the like. I've got the code that dynamically
generates an appropriate image based on the state.
The problem is how do I make the Tree/ListView item use it? These seem only
to have ImageIndex properties? I've already got 4 images lists offering
small and large sizes for 256 colour and XP images - seems rather onerous!
Any advice gratefully received!
Adam,
* "Adam Hearn" <ahearn@nospam.com> scripsit:
> I've got a base image for an item and some common adornments. The adornments
> reflect the state of the item being shown in the list. Stuff like padlock
[quoted text clipped - 4 lines]
> to have ImageIndex properties? I've already got 4 images lists offering
> small and large sizes for 256 colour and XP images - seems rather onerous!
It seems that you will have to store all the images in one imagelist and
set the 'ImageIndex' according to the item's state.

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/
Adam Hearn - 18 Jul 2004 11:54 GMT
Indeed that's the conclusion I had :( I realise that there's a resource
saving when using an ImageList object but it would have been good to
override an image for a particular entry!
> Adam,
>
[quoted text clipped - 10 lines]
> It seems that you will have to store all the images in one imagelist and
> set the 'ImageIndex' according to the item's state.