Autor Beitrag
SpeedyGTD
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Do 25.07.02 02:51 
Ich hab mal wieder ein Prob. wie kann ich den Namen eines ausgewählten Items in der ShellListView in Delphi6 ermitteln und auf, Beispielsweisse einem Label ausgeben?

Thx im Vorraus :P
Renegade
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 358

Win XP Pro, Win 7 Beta
BDS 2006
BeitragVerfasst: Do 25.07.02 16:45 
Das müßte so gehen:

ausblenden Quelltext
1:
Edit1.Text:=tShellListViewItem(ShellListView1.Items.Selected).Name					


Mfg

_________________
Sokrates (468 v.Chr. - 399 v.Chr.)
"Es ist keine Schande, nichts zu wissen, wohl aber, nichts lernen zu wollen."
SpeedyGTD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Do 25.07.02 16:53 
So müßte es gehen, das dachte ich auch, oder mit ItemIndex, Selected.Caption, ItemFocused.Caption usw aber leider kommt da nichts bei raus.

Thx @ Renegade
Renegade
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 358

Win XP Pro, Win 7 Beta
BDS 2006
BeitragVerfasst: Do 25.07.02 20:54 
Sorry mein Fehler - habe die Besonderheiten bei der Comp nicht bedacht. :oops:

Es geht folgendermaßen :idea:

ausblenden Quelltext
1:
  Edit1.text:=sv.selectedfolder.DisplayName;					


Mfg

_________________
Sokrates (468 v.Chr. - 399 v.Chr.)
"Es ist keine Schande, nichts zu wissen, wohl aber, nichts lernen zu wollen."