Autor Beitrag
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: So 10.01.10 16:17 
Hi,

ich such nach ner Möglichkeit Datein aus dem ShellTreeView auf meine Form (oder besser gesagt eine ListBox) zu Dropen. Der ShellTreeView befindet sich auf der selben Form wie die ListBox. Normales Drag&Drop (vom WindosExplorer) geht, aber aus dem ShellTreeView heraus gehts nich. Hat jmd ne Idee wie ich das zum laufen bekomm?

MfG & Thx Bergmann

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Mi 13.01.10 17:21 
hi, stelle in ShellTreeView
- dragmode auf dmAutomatic
und in Deiner Listview/Listbox
- ondragover schreibst Du
ausblenden Delphi-Quelltext
1:
2:
if (Source is TShellTreeView) then
Accept := True;


im
-ondragdrop schreibst Du
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if (Source is TShellTreeView) then
begin
//<- mache was mit der info
end

und den rest must Du dann selber schreiben :wink:

Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Bergmann89 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Do 14.01.10 00:19 
Wow so einfach?! Funzt 1a, DANKE^^

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Do 14.01.10 14:10 
Freut mich, das ich helfen konnte. :D
Sonst bekam ich immer nur Hilfe :wink:
Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!