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
 How add custom File-Type to General Image Files?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

984 Posts

Posted - Mar 25 2021 :  14:37:14  Show Profile  Reply
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?



xequte

39053 Posts

Posted - Mar 25 2021 :  21:23:21  Show Profile  Reply
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
Go to Top of Page

PeterPanino

984 Posts

Posted - Mar 26 2021 :  02:56:21  Show Profile  Reply
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.
Go to Top of Page

xequte

39053 Posts

Posted - Mar 26 2021 :  22:40:03  Show Profile  Reply
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
Go to Top of Page

PeterPanino

984 Posts

Posted - Mar 28 2021 :  07:11:43  Show Profile  Reply
Hopefully MULTI-LINE?
Go to Top of Page

xequte

39053 Posts

Posted - Mar 28 2021 :  18:52:53  Show Profile  Reply
No, that would break existing functionality (users who already setting ExtendedFilters).



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