Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mi 23.10.02 22:17 
Gibt es eine Möglichkeit neben der Einschränkung auf Ordner/Files auch zu filtern, so dass z.B. nur noch Ordner und *.exe files angezeigt werden?
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Do 24.10.02 01:31 
:lol: Ich hab selber eine Lösung gefunden:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure THauptfenster.FileListBox1AddFolder(Sender: TObject;
  AFolder: TShellFolder; var CanAdd: Boolean);
begin
  if (CompareText(ExtractFileExt(AFolder.PathName), '.exe') = 0) or
    AFolder.IsFolder then
    CanAdd := True
  else
    CanAdd := False;
end;
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Do 24.10.02 10:10 
Hallo,

nur wenige Postings unter deiner Frage hättest du auch das hier finden können.

Aber du bist ja auch auf eine Lösung gekommen :mrgreen:

Gruß
Klabautermann