Sign in Join
FPDoc Onlineexperiment

TOpenPictureDialog.Filter property

Member of TOpenPictureDialogpublishedIn unit ExtDlgs

Contains a delimited list of descriptions and extensions for file available in the dialog.

Declaration

pascal
property Filter: stored IsFilterStored;

Description

Filter is a String property which contains a delimited list of file name filters available in the dialog. Each value in the delimited list is separated by a Pipe (or vertical bar) character ('|') and consists of a description and file extension for files matching the filter value. For example:

'All files|*.*|Lazarus Project files|*.lpr|Pascal units|*.pas;*.pp'

The initial value for Filter is assigned in Create using the value from the DefaultFilter property.

Use GetFilterExt to get the file extension for the current Filter value selected in the dialog. Use FilterIndex to determine the position for the selected file filter.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.