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
 Load files with IO.ExecuteOpenDialog?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

864 Posts

Posted - Mar 25 2021 :  15:23:23  Show Profile  Reply
IO.ExecuteOpenDialog allows to load one single file.

Is there a way to load MULTIPLE FILES with IO.ExecuteOpenDialog?

xequte

38217 Posts

Posted - Mar 25 2021 :  21:31:18  Show Profile  Reply
Sure, please use ofAllowMultiSelect:

// Prompt to insert multiple images into a TImageEnMView
OpenImageEnDialog1.Options := OpenImageEnDialog1.Options + [ofAllowMultiSelect];
if OpenImageEnDialog1.Execute then
  ImageEnMView1.FillFromList( OpenImageEnDialog1.Files );


https://www.imageen.com/help/TOpenImageEnDialog.Files.html

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

PeterPanino

864 Posts

Posted - Mar 26 2021 :  03:07:18  Show Profile  Reply
Thanks, Nigel. Is that also possible when invoking the open dialog using this code:

ImageEnView1.IO.ExecuteOpenDialog('', '', False, 0, 'MyExt Files|*.MyExt');
Go to Top of Page

xequte

38217 Posts

Posted - Mar 26 2021 :  22:37:46  Show Profile  Reply
Hi Peter

Sorry, no, you need to use a TOpenImageEnDialog for multi-select.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: