我想用Delphi做一个类似Windows资源的的应用程序。
其中有两个文件列表。如何编写拖拽事件实现文件或文件夹的移动。
望各位CSDN的朋友们多多指点!!!
不胜感激!!!
其中有两个文件列表。如何编写拖拽事件实现文件或文件夹的移动。
望各位CSDN的朋友们多多指点!!!
不胜感激!!!
解决方案 »
- 利用DELPHI中的MSComm控件实现单片机与PC机的串口通信程序该怎么编啊?
- 如何在comobox中输入固定内容并且不给修改,变成灰色
- 把一个非mdichild的窗口建到另一个非mdi风格的窗口里面,此窗口怎样才能获取到焦点?即触发到onenter事件?
- 请问delphi7中的ftp组件tnmftp怎么找不到?
- 请问用Delphi能画出Word里一样的表格吗?(急,在线等)
- 嵌入式sql语句参数赋值问题
- 怎么把非标准资源加入到资源文件中?
- 想用StringGrid来显示数据库中的内容,但是出了错误:
- 如何在dbgrid得到光标所在行的每一列的内容或对应的记录在表中的位置?
- 谁有 TdxBarControl/TdxBarSubMenuControl系列控件?急需!!!
- IndyFTPServer问题
- 一个简单的问题﹐当我的stringgrid的列的宽度改变时﹐我怎样响应这样的事件,在哪里可以写这样的事件处理过程
procedure TForm1.FileListBox2DragOver(Sender, Source: TObject; X,
Y: Integer; State: TDragState; var Accept: Boolean);
begin
if Source is TFileListBox then Accept := True;
end;procedure TForm1.FileListBox2DragDrop(Sender, Source: TObject; X,
Y: Integer);
begin
if Source is TFileListBox then
begin
if TFileListBox(Source).Name = 'FileListBox1' then
begin
TFileListBox(Sender).Items.Add(TFileListBox(Source).Items.Strings[TFileListBox(Source).ItemIndex]);
end;
end;
end;
当然这远远不够,但基本上就是这么一回事。你根据你程序的需要去改吧。^_^
copyfile(path,destpath);
then add list node.
转帖