If I have a folder including thousands of files, having an opendialog allowing multiple selection.
I try to load all files (selecting the first one and scrolling till the last one).
All files seems to be selected but the value of OpenDialog1.Files.Count is only few hundreds.
Is it a bug or am I missing something?
Here's what you can do.
After you you select the first one and scroll till the last one (I presume this is followed by "Shift-Click" to select the entire list)
pay your attention to the number of files selected that is reported by the Dialog itself.
I did a test trying to select 2000 files. To my surprise, the scroll to the bottom and "shift-click"-ing results in only half of the files selected.
If done faster, even less files will be available for the selection.
The number shown on the dialog matches the number of the files reported in the code.
The slowness appears to be related to LCL's file type filtering. (I.e. an open file dialog in TextEdit doesn't have such "lag" in selecting files. Instead all files are selected when doing the same "scroll-to-bottom selection")