Autor Beitrag
Calyptus
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 386

Win Xp Prof
D3, D6 Pers, D7 Ent
BeitragVerfasst: Mo 06.09.04 11:21 
Wie kann ich bei einem Filter alle Dateitypen bis auf einen bestimmten anzeigen lassen?

_________________
Luft- und Raumfahrtechnik an der Uni Stuttgart
Calyptus Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 386

Win Xp Prof
D3, D6 Pers, D7 Ent
BeitragVerfasst: Do 09.09.04 13:50 
ist meine frage zu schwer für euch oder mögt ihr mich nicht :?:

_________________
Luft- und Raumfahrtechnik an der Uni Stuttgart
MisterBum83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 245
Erhaltene Danke: 2

WIN XP
Delphi 6
BeitragVerfasst: Do 09.09.04 14:02 
Indem du alle bis auf diesen einen in die Tabelle einträgst...
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Do 09.09.04 14:03 
Kurz und knapp: Bei dem typischen Open-/SaveDialog geht sowas meines Wissens nach überhaupt nicht.

@MisterBum: Was für eine Tabelle? :shock:

Cu,
Udontknow
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 09.09.04 14:12 
Zitat:
ist meine frage zu schwer für euch oder mögt ihr mich nicht

weder noch, @calyptus...

nur meines wissens nach funktioniert das mit Open- & Savedialog nicht.
du könntest dir selbst eine file-auswahl mit einer listbox erstellen - in diese nimmst du nur jene files auf, die ausgewählt werden sollen (stichwörter: FindFirst - FindNext)

mfg, stefan
MisterBum83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 245
Erhaltene Danke: 2

WIN XP
Delphi 6
BeitragVerfasst: Do 09.09.04 14:14 
@Udontknow: Ich meinte den Filter-Editor (ist ja ne Tabelle, oder?!?)

Gruß MisterBum
Calyptus Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 386

Win Xp Prof
D3, D6 Pers, D7 Ent
BeitragVerfasst: Do 09.09.04 14:17 
Na also, geht doch :D

Danke...

ich werd mich jetzt wohl mal dranmachen 1000 dateitypen in mein filter zu schreiben...

_________________
Luft- und Raumfahrtechnik an der Uni Stuttgart
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Do 09.09.04 14:23 
@MisterBum:

Ahso, die Stringliste. Das kann man so sehen. Bei Tabelle denke ich immer sofort an Datenbanken. :)

Aber alle Dateitypen zu ermitteln dürfte nicht gerade performant sein.

Cu,
Udontknow
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 09.09.04 14:35 
Da gehts wahrscheinlich schneller, wenn du dir deinen eigenen Dialog baust und beim Suchen deine Ausblende-Endung einfach wegläss. :?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 09.09.04 14:40 
Schau Dir einfach mal das Ereignis "OnIncludeItem" an! ;-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 09.09.04 16:39 
Dieser Thread könnte für Dich interessant werden!

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 09.09.04 19:08 
mein delphi (D4) kennt noch kein 'OnIncludeItem'. das gibts wahrscheinlich erst ab D8? ;)
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 09.09.04 19:09 
Ups, sorry. :oops: Mein Profil ist nicht mehr ganz aktuell. Ich nutze im Moment D7 (mit SP1).

//edit: So, geändert.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Calyptus Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 386

Win Xp Prof
D3, D6 Pers, D7 Ent
BeitragVerfasst: Fr 10.09.04 17:52 
Hmm Danke an alle. Habs hinbekommen...

_________________
Luft- und Raumfahrtechnik an der Uni Stuttgart
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 10.09.04 17:57 
Und wie?

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Calyptus Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 386

Win Xp Prof
D3, D6 Pers, D7 Ent
BeitragVerfasst: Mo 13.09.04 14:39 
Anstatt nem OpenDialog bab ich einfach ein ShellListView genommen. Nicht so toll, aber es tuts:


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.ShellListView1AddFolder(Sender: TObject; AFolder: TShellFolder; var CanAdd: Boolean);
var XExt: string;
begin   
XExt := ExtractFileExt(AFolder.PathName);
if XExt = '.dat' then CanAdd := false;
end;


so kommen alle dateien bis auf *.dat

Moderiert von user profile iconmatze: Code- durch Delphi-Tags ersetzt

_________________
Luft- und Raumfahrtechnik an der Uni Stuttgart