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


Set a pattern to filter the files in the requester


Source position: MUIClass.Dialog.pas line 34

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


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: 2023-12-09