Author |
Topic |
|
zerob
177 Posts |
Posted - Feb 15 2021 : 06:10:09
|
A few days ago you told me how to scroll up after loading pictures.
It all worked well, but if only a few images are in that folder, and caching (i do disk caching) is turned on, then the ImageEnFolderMView randomly draws images multiple times instead of showing all the needed images.
It seems that altering the selection while the update is locked, screws up caching.
fv.LockUpdate; fv.Clear; fv.FillFromDirectory('D:\test\',-1,False,'',False,'',False,True); fv.SelectedImage := 0; // this messes up drawing fv.UnselectImage(0); // this messes up drawing if unselecting a selected item. For example fv.UnselectImage(fv.ImageCount -1); which is selected by default. fv.UnlockUpdate();
if i don't alter selection or disable caching fv.EnableImageCaching := False; it works. Also if i do a selection change outside of a lockupdate it doesn't mess up the display after it was loaded. It seems any selection messes up. But i didn't see it with the folder that had 2000 images and a scrollbar. Maybe i just didn't check enough... but on the folder with 7 images i clearly saw it. sometimes it even copies 1 image 4-5 times. |
|
xequte
38684 Posts |
Posted - Feb 16 2021 : 16:47:03
|
Hi
I can't reproduce in v9.3.2 (which will be released today).
If you are still seeing it with the new release, can you give me more specific steps to reproduce the issue.
Nigel Xequte Software www.imageen.com
|
|
|
|
Topic |
|
|
|