ImageEn, unit iexFolderTree

TIEFileListBox.FileTypesMask

TIEFileListBox.FileTypesMask


Declaration

property FileTypesMask: string;


Description

Specifies the file types to retrieve from your Folder. If an empty string is specified all extensions will be returned.
File types must be specified as a comma-separated list of extensions, e.g. 'jpg,jpeg,jpe', or a standard file mask, e.g. '*.jpg;*.jpeg;*.jpe'.

Note: Property is ignored unless FileTypes has been set to iefCustom

Default: ''


Examples

// Retrieve only JPEG images
IEFileListBox1.Items.BeginUpdate();
try
  IEFileListBox1.Folder := 'C:\Images\';
  IEFileListBox1.FileTypes := iefCustom;
  IEFileListBox1.FileTypesMask := 'jpg,jpeg,jpe';
finally
  // Re-enable updating and call update
  IEFileListBox1.Items.EndUpdate();
end;


// Use a TFilterComboBox to filter the TIEFileListBox
procedure TForm1.FilterComboBox1Change(Sender: TObject);
begin
  IEFileListBox1.FileTypes     := iefCustom;
  IEFileListBox1.FileTypesMask := FilterComboBox1.Mask;
end;