TFileListBox: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | **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]]. | |
| 2 | 2 | ||
| 3 | 3 | Drop the component on a form, set the Directory property and possibly the Mask property and it is done. | |
| 4 | 4 | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 8 | - | ||
| 5 | + |  | |
| 9 | 6 | ||
| 10 | 7 | You can determine which file the user clicked like this: | |
| 11 | 8 | ||
| 12 | 9 | ``` pascal | |
| 13 | 10 | procedure TForm1.FileListBox1Click(Sender: TObject); | |
| 14 | 11 | begin | |
| 15 | 12 | showmessage('you clicked ' + Filelistbox1.Items[FileListBox1.ItemIndex]); | |
| 16 | 13 | end; | |
| 17 | 14 | ``` | |
| 18 | 15 | ||
| 19 | 16 | ## See also | |
| 20 | 17 | ||
| 21 | 18 | - [[FindAllFiles]] | |
| 22 | 19 | - [[TShellListView]] | |
| 23 | 20 | ||
| 24 | 21 | --- | |
| 25 | 22 | *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).* |
