Unit 'MUIClass.Dialog' Package
[Overview][Types][Classes][Procedures and functions][Index] [#MUIClass]

TFileDialog.Pattern

Set a pattern to filter the files in the requester

Declaration

Source position: MUIClass.Dialog.pas line 37

public property TFileDialog.Pattern : string
  read FPattern
  write FPattern;

Description

If the pattern is set, the input gadget for it will be shown as well. Default is, no Pattern and therefore the Pattern Gadget is hidden. To show the Pattern settings but not filter anything set the Pattern to '#?'

Some Pattern examples:

FileDialog.Pattern := '#?.iff';     // only show IFF
FileDialog.Pattern := '~(#?.info)'; // do not show info files
FileDialog.Pattern := '(#?.bmp|#?.gif|#?.iff|#?.jpg)'; // show only some usual image formats

Documentation generated on: 2024-11-21