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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnFolderMView and IncludeSubFolders Problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 22 2021 :  12:18:57  Show Profile  Reply
Hello,
when i use ImageEnFolderMView and IncludeSubFolders = true, and
IEFolderMView1.Folder := C:\ or D:\ (so Root), the Programm hanging on.
Your Example FolderMView has the same Effect.
What kann i do, for searching over the komplett Device ?

Klaus
DigiFoto
www.klausdoege.de

xequte

38180 Posts

Posted - Aug 23 2021 :  05:32:29  Show Profile  Reply
Hi Klaus

You can use the OnProgress event to track the processing of folders (ProgressTask will be ietFilling). You can set Aborting to true to halt the filling.

https://www.imageen.com/help/TImageEnMView.OnProgress.html
https://www.imageen.com/help/TImageEnMView.ProgressTask.html

However the initial process of collecting the folder list can be time consuming on a large drive.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 27 2021 :  09:13:59  Show Profile  Reply
Hi Nigel,
thanks, it works perfectly like this, I can cancel now the process.
Unfortunately it is not possible to scan a complete hard disk c:\ or e:\,
it just takes too long.
Unfortunately, there is no message in between, so that you cannot see whether the action is still active.

Klaus
DigiFoto
www.klausdoege.de
Go to Top of Page

xequte

38180 Posts

Posted - Aug 27 2021 :  20:12:54  Show Profile  Reply
Hi Klaus

Yes, there doesn't seem to be a practical way around that. Perhaps we need a maximum number of folders. I will investigate that.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 29 2021 :  05:19:16  Show Profile  Reply
Hallo Nigel,
why is the value per in IEFolderMView1IOProgress(Sender: TObject; per: Integer);
never > 0 ?
And what is the difference to
IEFolderMView1DrawProgress(Sender: TObject; per: Integer);

Klaus
DigiFoto
www.klausdoege.de
Go to Top of Page

xequte

38180 Posts

Posted - Aug 29 2021 :  19:26:50  Show Profile  Reply
Hi Klaus

It is zero while filling the content with sub-folders because the total number of folders is not known. Progress is called only to allow the process to be aborted.

OnDrawProgress occurs as each image is painted.
per returns the number of images completed (painted or skipped because they are off-screen) out of the total number of images in the control. It will reach 100% when all images onscreen have been painted.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38180 Posts

Posted - Aug 30 2021 :  03:28:39  Show Profile  Reply
Hi Klaus

We have now implemented a SubFolderLimit property that prevents too many folders from being parsed. It is also used to return a more accurate progress percentage. You can email me to test it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38180 Posts

Posted - Aug 30 2021 :  03:55:06  Show Profile  Reply
Also, please note that is is OnProgress that should be used during fill operations, not OnIOProgress.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: