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

# TCustomFileListBox

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

TCustomFileListBox : base type for TFileListBox - a tool for listing files for selection

## Declaration

Source position: filectrl.pp line 50

`type TCustomFileListBox = class(TCustomListBox)`
`protected`
`procedure DoChangeFile; virtual;` |  | DoChangeFile - method to change a file selection: calls the OnChange event handler
`procedure Loaded; override;` |  |
`function IndexOfFile();` |  | IndexOfFile - number of the selected file in the list of files
`procedure KeyUp(); override;` |  | KeyUp - emulates the action of a key being released (makes OnKeyUp respond)
`public`
`constructor Create(); override;` |  |
`destructor Destroy; override;` |  |
`procedure Click; override;` |  | Click - a procedure that allows the programmer to simulate a mouse click over the control, and initiates the same Action as that associated with the OnClick event
`procedure UpdateFileList; virtual;` |  | UpdateFileList - brings the list of files up to date, taking into account any changes
`property Drive: Char; [rw]` |  | The Drive on which the file is located (applies to Windows systems)
`property Directory: String; [rw]` |  | The Directory or Folder in which the file is located
`property FileName: String; [rw]` |  | FileName - the name of the selected file
`property FileType: TFileType; [rw]` |  | FileType - the type or attributes of the selected file
`property Mask: String; [rws]` |  | The search Mask used to find the file
`property OnChange: TNotifyEvent; [rw]` |  | OnChange - event handler for a change in the file list or the selection
`property Sorted;` |  | Sorted - whether the selected Items in the list have been arranged in alphabetical order
`end;`

## Inheritance

`TCustomFileListBox` |  | TCustomFileListBox : base type for TFileListBox - a tool for listing files for selection
`TCustomListBox`
?
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.