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
 IO.ExecuteSaveDialog - jpeg to jpg

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
marek Posted - Jul 05 2021 : 16:35:18
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 05 2021 : 20:32:40
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