Einzelnen Beitrag anzeigen

padavan

Registriert seit: 12. Jan 2005
271 Beiträge
 
Delphi 7 Enterprise
 
#2

Re: Drag and Drop Shelllistview > Listview

  Alt 20. Okt 2005, 06:26
Delphi-Quellcode:
procedure ShellListView1MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  if button = mbleft then ShellListview1.BeginDrag(false);
end;
Delphi-Quellcode:
procedure Listview1DragOver(Sender,
  Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);
begin
  if source is tShellTreeView then accept := true;
end;
Delphi-Quellcode:
procedure Listview1DragDrop(Sender,
  Source: TObject; X, Y: Integer);
begin
  if source is tShellTreeView then begin
//tu was......
  end;
end;
  Mit Zitat antworten Zitat