Hi Fabrizio, Nigel, Bill.
I have added a feature so the user can change the size of directory thumbnails shown in an ImageEnMView, using ImageEnMView.SetThumbnailSize
.This works, but if the thumbnails are enlarged this way the resolution is poor unless they are reloaded.
I have tried reloading them with both: ImageEnMView.FillFromDirectory
and also this codefor i := 0 to ImageEnMView.ImageCount - 1 do
ImageEnMView.ReloadImage(i);
Both work but with both methods thumbnails go blank until they have reloaded.
Is there a way of stopping the paint until all of the thumbnails have loaded, so thumbnails do not go blank during the reload?
I have tried putting ImageEnMView.LockPaint before the block of code and ImageEnMView.UnlockPaint after but it doesn't seem to make any difference - I assume because they are loading in separate threads?
I see that there is a TImageEnMView.OnAllDisplayed event but that isn't called until they have all been painted.
Is it possible to access an ImageEnMView.OnAllLoaded event, and put an ImageEnMView.UnLockPaint there?
Or is there another way to delay the repaint until all the thumbnails have loaded?
Thanks, Patrick