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
 TImageEnMView.OnIOProgress
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

roberto

Spain
19 Posts

Posted - Oct 01 2013 :  09:48:34  Show Profile  Reply
I need to know the filename of the file been loaded by the function TimageEnMView.FillFromDirectory so I have tried the event OnIOProgress this will give me the percent of the file been loaded, but is there any way of getting the filename as there is not index parameter?

w2m

USA
1990 Posts

Posted - Oct 01 2013 :  10:02:56  Show Profile  Reply
FillFromDirectory is threaded, so the filenames will change very quickly, but you can get the filename from the ImageDraw event or from a number of other events that pass idx such as ImageIDRequest.
procedure TForm1.ImageEnMView1ImageDraw(Sender: TObject; idx, Left,
  Top: Integer; Canvas: TCanvas);
var
  iFilename: string;
begin
  iFilename := ImageEnMView1.ImageFileName[idx];
end;

What are you using the filenames for?

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

roberto

Spain
19 Posts

Posted - Oct 01 2013 :  12:55:32  Show Profile  Reply
As my routine will search for all images in a Medical CD, I wanted to show the file name and percent on the status bar.

then again, I do not know if this will slow down to much the routine...I might consider doing something else.

Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: