procedure TFMForm
Y: Integer; State: TDragState; var Accept: Boolean)
begin
if Source is TFileListBox then
Accept := True;
end;
procedure TFMForm
Y: Integer; State: TDragState; var Accept: Boolean)
var
PropPos: Integer;
begin
if Source is TFileListBox then
with DriveTabSet do
begin
PropPos := ItemAtPos(Point(X
Accept := (PropPos >
end;
end;
DirectoryOutline是無條件的接受
DirectoryOutline的拖動放下用於實現文件移動功能
procedure TFMForm
begin
if Source is TFileListBox then
with DirectoryOutline do
begin
ConfirmChange(
end;
end;
DriveTabSet的拖動放下用於實現文件拷貝功能
procedure TFMForm
var
APoint: TPoint;
begin
APoint
DriveTabSet
if Source is TFileListBox then
with DriveTabSet do
begin
if CurrentDirList[TabIndex] <>
ConfirmChange(
end;
end;
procedure TFMForm
begin
if Target <> nil then FileList
end;
到目前為止
一步探討
文件管理器是一個真正的綜合例程
返回目錄
編輯推薦
Java程序設計培訓視頻教程
J
Visual C++音頻/視頻技術開發與實戰
Oracle索引技術
ORACLE
Java程序性能優化
C嵌入式編程設計模式
Android游戲開發實踐指南
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25212.html