[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'FileCtrl' (#lcl)

TFilterComboBox.Filter

Contains one or more file filters used in the combo-box.

Declaration

Source position: filectrl.pp line 187

published property TFilterComboBox.Filter : string
  read FFilter
  write SetFilter;

Description

Filter is a String property which is published in TFilterComboBox. Filter contains the file filter(s) which are used in the Items property. Each filter value in the string contains a textual description and mask. For example:

'Text files (*.txt *.pas)|*.txt;*.pas|Binaries (*.exe)|*.exe'.

Setting a new value for the property causes ConvertFilterToStrings to be called to parse and store the filter descriptions in the Items property. Existing values in Items are cleared before storing the new filter values. The value in ItemIndex is set to 0 to select the initial filter in Items.

See also

TCustomFilterComboBox.ConvertFilterToStrings

  

Parses the file filter(s) in AFilter and stores them in AStrings.

TCustomComboBox.Items

  

The list of items displayed in the combo-box control.

TCustomComboBox.ItemIndex

  

The index of the currently selected item, or -1 if no item is selected.


Version 4.0 Generated 2025-05-03 Home