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
 BeginSelect

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
jenswahl Posted - Nov 13 2020 : 03:28:33
Hello,

I found a behavior that I cannot explain to myself:


//iefmvMain is a TImageEnFolderMView-Object and displays some images.
//Enable MultiSelect and select two or more of these images. After them try this:
procedure Test_BeginSelect;
begin
    //here it's still OK:
    if (iefmvMain.MultiSelectedImagesCount > 0) then begin
    	ShowMessage('Like expected');
    end
    else begin
    	ShowMessage('I''m a little bit confused');
    end;
    //BeginSelectImages makes the difference:
    //- MultiSelectedImagesCount is 0
    //- IsSelected returns False for each image
    //- MultiSelectedImagesList is empty
    iefmvMain.BeginSelectImages;
	if (iefmvMain.MultiSelectedImagesCount > 0) then begin
    	ShowMessage('Like expected');
    end
    else begin
    	ShowMessage('I''m a little bit confused');
    end;
    iefmvMain.EndSelectImages;
end;


Is this an error or is there an important reason for these differences?

Kind Regards

Jens

www.inntalsoftware.de/en/
2   L A T E S T    R E P L I E S    (Newest First)
jenswahl Posted - Nov 16 2020 : 03:32:33
Thank you for the information.

Kind Regards

Jens

www.inntalsoftware.de/en/
xequte Posted - Nov 13 2020 : 23:15:52
Hi Jens

BeginSelectImages resets the existing selection. I will add a note to the documentation.

Nigel
Xequte Software
www.imageen.com