在DragOver事件中: accept:=Source is TlistView 在DragDrog事件中: (Source As TListView).Selected.SetPosition(Point(X,Y)); 在MouseDown事件中: if button=mbleft then begin with sender as TListview do begin if GetItemAt(x,y)<>nil then begindrag(false); end; end; 添加以上三个即可
accept:=Source is TlistView
在DragDrog事件中:
(Source As TListView).Selected.SetPosition(Point(X,Y));
在MouseDown事件中:
if button=mbleft then
begin
with sender as TListview do
begin
if GetItemAt(x,y)<>nil then
begindrag(false);
end;
end;
添加以上三个即可