Difference between revisions of "TFileListBox"
From Lazarus wiki
Jump to navigationJump to search (Provide a stub of a page for TFileListBox) |
(added a see also) |
||
Line 18: | Line 18: | ||
==See also== | ==See also== | ||
[[FindAllFiles]] | [[FindAllFiles]] | ||
− | + | [[TShellListView]] | |
{{LCL Components}} | {{LCL Components}} |
Revision as of 06:16, 2 June 2020
TFileList box provides a very simple means of showing the end user a list of files in a particular directory and allowing them to select one or more files. Its available under the Misc_tab of Component Palette.
Drop the component of a form, set the Directory property and possibly the Mask property and its done.
You can determine which file the user clicked like this -
procedure TForm1.FileListBox1Click(Sender: TObject);
begin
showmessage('you clicked ' + Filelistbox1.Items[FileListBox1.ItemIndex]);
end;
See also