At the moment TFileListBox is broken, that is, it does not correctly
display filenames according to the filetype (if FileType = [ftNormal]
it does not display any files for example).<br><br>I wrote a patch and
proposed it in the bugtracker, but, because I'm not absolutely sure
about the desired behaviour of TFileListBix, Vincent suggested that I'd
ask for feedback on this mailinglist.<br><br>
<br>As far as I can see, studying the Delphi 3 Helpfiles, the FileListBox should act on the FileType property in the following way:<br><br>
<ol>
  <li>if FileType = [] (empty set) then no files will be displayed.</li>
  <li>A regular file is a file that does <span style="font-weight: bold;">not</span> have the faHidden, faSysFile, faDirectory, or faVolumeId attribute set.</li>
  <li>if FileType contains ftNormal, then all <span style="font-weight: bold;">regular</span> <span style="font-weight: bold;">files </span>will be displayed. </li>
  <li>a file with (for example) attribute faHidden+faSysFile will only
be showm if ftHidden and ftSystem are in Filetype (much like FindFirst
shows files according to the Attribute)</li>
  <li>if ftNormal is <span style="font-weight: bold;">not</span> in FileType then a file will only be shown if it has the faDirectory, faHidden, faSysFile or faVolumeId set, that is <span style="font-weight: bold;">regular files</span> will <span style="font-weight: bold;">not </span>be shown.</li>

  <li>setting ftReadOnly does not have any effect on the shown files (behaviour observed in Delphi 3 Pro on Win9x)</li>
  <li>setting ftArchive does not have any effect on the shown files (behaviour observed in Delphi 3 Pro on Win9x)</li>
</ol>
In short: setting the FileType gives the same behaviour as setting
Attributes for Findfirst with the exception of rule nr. 5 (excluding
regular files).<br>
<br>
My question of course to you all is: are these assumptions correct?<br>
If so I will finetune my patch and post it back on the bugtracker.<br>
<br>
Bart<br>