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?