ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Image Caching/Drawing bug

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zerob 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.
1   L A T E S T    R E P L I E S    (Newest First)
xequte 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