Autor Beitrag
Willie1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP Home
Delphi 5 Prof., Delphi 6/7 Pers.
BeitragVerfasst: Do 16.02.06 10:41 
Hallo Leute,

ich habe mir mit TTreeView einen eigenen "Ordner suchen-Dialog" gebaut, funktioniert auch gut. Ich will jetzt aber, das der Suchen-Dialog zum Start mit einem ausgewählten Ordner angezeigt wird. Das gelingt mir nicht. Frage WIE.
Ein paar Schnipsel Quelltext würden mir helfen.

Beispiel (so ausgeklappt soll der Dialog erscheinen)
A:\
C:\
eigene dateien
eigene Bilder
zuhause (markiert!!!)
D:\
...

MfG
Willie1
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Do 16.02.06 11:39 
Meinst du ein Item markieren ?

das würde so gehen :
ausblenden Delphi-Quelltext
1:
2:
3:
//selektiert Item mit Index i
frm_Main.treeview.Items.Item[1].Selected := true;
frm_Main.treeview.SetFocus;
Willie1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP Home
Delphi 5 Prof., Delphi 6/7 Pers.
BeitragVerfasst: Do 16.02.06 17:45 
Titel: Order-Suchen-Dialog mit TTreeView
Vielleicht habe ich mich etwas umständlich ausgedrückt. Ich will einen "Ordner-Auswahl"-Dialog, der mit einem ausgewählten Pfad intialisiert ist.

Ordner = C:\Eigene Dateien\Eigene Bilder\ZuHause
Soll nach dem Aufruf so aussehen:
A:\
C:\
----Eigene Dateien <--- hier soll die Liste ausgeklappt sein.
--------Eigene Bilder
------------ZuHause
D:\
E:\

Wie SelectDirectory, nur eben schon ausgeklappt.
SelectDirectory() aus FileCtrl leistet das nicht!!!

Willie1
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Fr 17.02.06 11:56 
da würde ich dir BrowseForFolder empfehlen...
Willie1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP Home
Delphi 5 Prof., Delphi 6/7 Pers.
BeitragVerfasst: Fr 17.02.06 14:38 
Titel: Ordner-Dialog
Werde ich tun.
Ich wollte nur einen Ordner-Dialog, der gleichzeitig die Dateien des Ordners anzeigt!

Willie1
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 17.02.06 14:56 
Hallo!

Schau Dir mal diese OpenSource-Unit an: www.delphi-forum.de/...ForFolder_27628.html

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".