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

TCustomFilterComboBox

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Specifies a combo-box used to select a file filter.

Declaration

Source position: filectrl.pp line 146

type TCustomFilterComboBox = class(TCustomComboBox)

protected

  procedure Select; override;

  

Performs actions needed when the selected item (ItemIndex) has been changed.

  procedure Notification(); override;

  

Handles notification messages for sub-components in the control.

public

  constructor Create(); override;

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  class procedure ConvertFilterToStrings();

  

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

  property Mask: string; [r]

  

File mask for the selected filter in the control.

  property ShellListView: TShellListView; [rw]

  

Connects the control to a TShellListView instance.

end;

Inheritance

TCustomFilterComboBox

  

Specifies a combo-box used to select a file filter.

|

TCustomComboBox

  

The base class for combo-box components.

|

TWinControl

  

Implements a windowed control which can contain other child controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TCustomFilterComboBox is a TCustomComboBox descendant which defines a combo-box used to select files which match a selection filter.

Use the Filter property to define the filter names and expressions available in the drop-down for the combo-box. Only the filter name is displayed in the combo-box.

Use AutoComplete to enable or disable case-insensitive automatic text completion in the edit area for the combo-box. When set to True, the Filter which starts the the typed value is located and selected in the control. Please note that AutoComplete works when the text area is empty, or when the entire contents of the editable are are selected.

Use ItemIndex to get the ordinal position in Filter for the selected filter. Use the OnSelect event handler to perform actions needed when a new value is selected in the combo-box.

TCustomFilterComboBox includes a ShellListView property with the TShellListView instance used to display the list of files matching the selected filter. ShellListView is updated (when assigned) in the Select method to use the value in Mask in the list view control. Set the Root property in ShellListView to control the directory displayed in the control.

TCustomFilterComboBox sets the visibility for properties defined in an ancestor class, and does not introduce any new properties, methods, or events. Please note that some properties are not published for the control, so do they do not appear in the Object Inspector at design-time. For example: Mask.

See also

TFilterComboBox

  

Implements a combo-box used to select a file filter.

TCustomComboBox

  

The base class for combo-box components.

TShellListView

  

Implements a list view control to display the files, directories and other objects (such as devices) on the local file system.


Version 3.2 Generated 2024-02-25 Home