Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

TFileListBox

TFileList box provides a very simple means of showing end users a list of files in a particular directory and allowing them to select one or more files. It is available under the Misc tab on the Component Palette.

Drop the component on a form, set the Directory property and possibly the Mask property and it is done.

You can determine which file the user clicked like this:

pascal
procedure TForm1.FileListBox1Click(Sender: TObject);
begin
    showmessage('you clicked ' + Filelistbox1.Items[FileListBox1.ItemIndex]);
end;

See also


From the Free Pascal wiki, page "TFileListBox", as it stood on 2020-06-02 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .