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
 IO.ExecuteSaveDialog - jpeg to jpg
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

marek

15 Posts

Posted - Jul 05 2021 :  16:35:18  Show Profile  Reply
I use ExecuteSaveDialog.
After changing the file type field to "JPEG Image" the default extension will be ".jpeg" (first extension). Is it possible to use as default the ".jpg" extension? I would like to use default filters.
Can I get default filter before calling IO.ExecuteSaveDialog?

Greetings,
Marek

xequte

38221 Posts

Posted - Jul 05 2021 :  20:32:40  Show Profile  Reply
Hi Marek

You should pass your own filter to IO.ExecuteSaveDialog().

You can use GetOpenSaveDialogFilter to get the filter that ImageEn would use:

https://www.imageen.com/help/GetOpenSaveDialogFilter.html

Then use a StringReplace() to change the order of JPEG extensions.

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