下载后可任意编辑◇[DELPHI]网络邻居复制文件uses shellapi;copyfile(pchar('newfile
txt'),pchar('//computername/direction/targer
txt'),false);◇[DELPHI]产生鼠标拖动效果通过 MouseMove 事件、DragOver 事件、EndDrag 事件实现,例如在 PANEL 上的 LABEL:var xpanel,ypanel,xlabel,ylabel:integer;PANEL 的 MouseMove 事件:xpanel:=x;ypanel:=y;PANEL 的 DragOver 事件:xpanel:=x;ypanel:=y;LABEL 的 MouseMove 事件:xlabel:=x;ylabel:=y;LABEL 的 EndDrag 事件:label
left:=xpanel-xlabel;label
top:=ypanel-ylabel;◇[DELPHI]取得 WINDOWS 目录uses shellapi;var windir:array[0
255] of char;getwindowsdirectory(windir,sizeof(windir));或者从注册表中读取,位置:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersionSystemRoot 键,取得如:C:\WINDOWS◇[DELPHI]在 form 或其他容器上画线var x,y:array [0
50] of integer;canvas
color:=clred;canvas
style:=psDash;form1
canvas
moveto(trunc(x[i]),