I have a TListView where I'm loading hundreds of items. Every item has its own unique corresponding image. First, I populate the TListView with an item for every record that belongs, with no images. Then, I loop through those items, identify the appropriate image to load for that item, and save that image into the TImageList which is then mapped to the TListView. However, with every little change I do to the TImageList, the entire TListView refreshes, thus flashing the display. Specifically, every time I add a TBitmap to the TImageList, the TListView automatically refreshes every single icon. How do I prevent this, to keep the TListView from flashing drastically when loading the pictures? Currently I first un-assign the TImageList from the TListView so it doesn't refresh, then when done, re-assign it back again. But I'd like the images to show as it loads, just not flash real fast.
JD Solutions
JD Solutions