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
 How add custom File-Type to General Image Files?

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
PeterPanino Posted - Mar 25 2021 : 14:37:14
I try to add a filter for a custom file-type to TOpenImageEnDialog:

OpenImageEnDialog1.AutoSetFilter := False;
OpenImageEnDialog1.Filter := OpenImageEnDialog1.Filter + '|MyExt Files|*.MyExt';


This works by adding the MyExt filter at the end of the list of single file types.

Then I try to add MyExt to the list of General Image files ("Allgemeine Bilddateien" in German language) in the Object Inspector directly in the IDE at Design-time:

Allgemeine Bilddateien (*.jpeg;*.png;*.bmp;*.tiff;*.gif...)|*.jpeg;*.jpg;*.png;*.bmp;*.dib;*.tiff;*.tif;*.gif;*.dicom;*.dcm;*.crw;*.cr2;*.ien;*.imageen;*.psd;*.psb;*.jp2;*.j2k;*.jpc;*.heic;*.heif;*.webp;*.wdp;*.hdp;*.wmf;*.emf;*.ico;*.cur;*.pcx;*.targa;*.tga;*.pxm;*.ppm;*.wbmp;*.dcx;*.iev;*.all;*.dds;*.avi;*.mpeg;*.mpg;*.wmv; *.MyExt

However, this does not work. Maybe ImageEn adds the General Images Files itself at run-time and replaces the General Image Files?

So, is there a run-time method to add *.MyExt to the General Image Files list of a OpenImageEnDialog at run-time?



5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 28 2021 : 18:52:53
No, that would break existing functionality (users who already setting ExtendedFilters).



Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Mar 28 2021 : 07:11:43
Hopefully MULTI-LINE?
xequte Posted - Mar 26 2021 : 22:40:03
Hi Peter

No, I'm afraid it will be a string property. It wouldn't be practical to invoke/create a specialized editor for that task.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Mar 26 2021 : 02:56:21
Thanks, Nigel. This works well if AutoSetFilter = True. Hopefully, the published ExtendedFilters property will have a comfortable Filter Property Editor where every single filter can be edited separately.
xequte Posted - Mar 25 2021 : 21:23:21
Hi Peter

You should use ExtendedFilters for this:

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

In the next update, this will be a published property

Nigel
Xequte Software
www.imageen.com