ImageEn, unit ieopensavedlg

TOpenImageEnDialog.AutoSetFilterFileType

TOpenImageEnDialog.AutoSetFilterFileType


Declaration

property AutoSetFilterFileType : TIOFileType;


Description

If AutoSetFilter is enabled, then the value of AutoSetFilterFileType will specify what formats are assigned to Filter.

By default (-1), all supported formats are added but you can specify an ImageEn type to limit the filter to that type.

Note: With TOpenImageEnDialog the filter will always include a line item for "Supported Types" and "All Files" even if if AutoSetFilterFileType is used.


Example

// Allow loading of all file types
OpenImageEnDialog1.AutoSetFilter := True;
OpenImageEnDialog1.AutoSetFilterFileType := -1;

// Only allow the user to save to GIF format
SaveImageEnDialog1.AutoSetFilter := True;
SaveImageEnDialog1.AutoSetFilterFileType := ioGIF;


See Also

AutoSetFilter
Filter