Autor Beitrag
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 27.07.05 13:43 
Weiß einer von euch wie ich die Pfade vom ShellTreeView bekomme, also welcher Zweig gerade aktiv ist? Bei Node bekomme ich ja immer nur die Namen des aktuellen Ordners.
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mi 27.07.05 15:14 
ausblenden Delphi-Quelltext
1:
Caption:=ShellTreeView1.SelectedFolder.PathName;					


Gruß,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 27.07.05 15:32 
Wenn ich darauf zugreife bekomme ich immer eine Fehlermeldung.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
if FindFirst(Form1.PfadShellTreeView.SelectedFolder.PathName+'*.mp3', faAnyFile-faDirectory, SearchRec)=0 then
 begin

 end;
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mi 27.07.05 15:42 
Also bei mir funzt das. Geht denn sowas:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.ShellTreeView1Change(Sender: TObject; Node: TTreeNode);
begin
Caption:=ShellTreeView1.SelectedFolder.PathName;
end;
Ist evtl. bei dir kein Eintrag markiert?

Gruß,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 27.07.05 15:47 
Das Ereignis wird bei mir schon beim erzeugen des Formulars ausgelöst.
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 29.12.05 09:39 
Ich habe das problem gelöst. Anscheinend ist die Komponente bei dem erstem Aufruf noch nicht erzeugt :arrow: Zugriff auf ein nicht existierendes Element ;).