Sign in Join
Wiki copytemporary

TFileListBox: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11**TFileList** ![](/wiki-images/6/65/TFileListBox_Icon.png) 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]].
22
33Drop the component on a form, set the Directory property and possibly the Mask property and it is done.
44
5-<figure>
6-<img src="TFileListBox.png" title="TFileListBox.png" />
7-<figcaption>TFileListBox.png</figcaption>
8-</figure>
5+![](/wiki-images/0/04/TFileListBox.png)
96
107You can determine which file the user clicked like this:
118
129``` pascal
1310procedure TForm1.FileListBox1Click(Sender: TObject);
1411begin
1512 showmessage('you clicked ' + Filelistbox1.Items[FileListBox1.ItemIndex]);
1613end;
1714```
1815
1916## See also
2017
2118- [[FindAllFiles]]
2219- [[TShellListView]]
2320
2421---
2522*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](/wiki-contact).*

Back to history