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
 TImageEnMView.OnIOProgress

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
roberto Posted - Oct 01 2013 : 09:48:34
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?
2   L A T E S T    R E P L I E S    (Newest First)
roberto Posted - Oct 01 2013 : 12:55:32
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
w2m Posted - Oct 01 2013 : 10:02:56
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