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
 IncludeSubFolders and IEFolderMView1.SetFolderEx ?

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
klausdoege Posted - Jan 19 2017 : 11:55:01
Hi,
i have found the following, when I do:

IEFolderMView1.IncludeSubFolders: = false;
IEFolderMView1.SetFolderEx (dir, iefAllImagesAndVideos, '');

And immediately:

IEFolderMView1.IncludeSubFolders: = true;
IEFolderMView1.SetFolderEx (dir, iefAllImagesAndVideos, '');

Then the following procedure will run twice at the second time for each image.

TForm1.ILolderMViewImageAdd (Sender: TObject; idx: Integer; const sFilename: string; bFolder, bHiddenFile: Boolean;
  IFileSizeBytes: Int64; CreateDate, EditDate: TDateTime; Var bAllow: Boolean);
Begin
    Label1.Caption: = inttostr (idx);
    If odd (idx) then application.ProcessMessages;
end;


What can i do ?


Klaus
www.klausdoege.de
2   L A T E S T    R E P L I E S    (Newest First)
klausdoege Posted - Jan 20 2017 : 02:55:16
Hi Nigel,
first without subfolder
0,1,2,3,.....
then draw picture

second with subfolder
0,1,2,3,4....
0,1,2,3,4....
then draw picture

third with subfolder
0,1,2,3,4...
then draw picture

only when first without subfolder and then with subfolder
then 0,1,2.. 0,1,2,..


Klaus
www.klausdoege.de
xequte Posted - Jan 19 2017 : 18:12:32
Hi Klaus

So, to clarify, if you remove the first call to SetFolderEx() then OnImageAdd is added only once per image?

So you are see values of idx like the following:

0
0
1
1
2
2
3
3
...


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com