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
 BeginSelect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jenswahl

Germany
71 Posts

Posted - Nov 13 2020 :  03:28:33  Show Profile  Reply
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/

xequte

38615 Posts

Posted - Nov 13 2020 :  23:15:52  Show Profile  Reply
Hi Jens

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

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

jenswahl

Germany
71 Posts

Posted - Nov 16 2020 :  03:32:33  Show Profile  Reply
Thank you for the information.

Kind Regards

Jens

www.inntalsoftware.de/en/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: