吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 629|回复: 1
收起左侧

[求助] Delphi的DirectoryListBox1控件上,如何按F2让目录可编辑?

[复制链接]
冥界3大法王 发表于 2022-8-8 20:58
[Delphi] 纯文本查看 复制代码
procedure TForm4.sBitBtn11Click(Sender: TObject);
var
  s: AnsiString;
begin
  DirectoryListBox1.OpenCurrent;
  s := DirectoryListBox1.GetItemPath(DirectoryListBox1.ItemIndex);
  CreateDir(s + '\新建子文件夹1');
  DirectoryListBox1.Update;
end;



问题1: Delphi的DirectoryListBox1控件上,如何按F2让选中的目录可编辑?

问题2:  DirectoryListBox1 上面,如何删除选中的文件夹? 试了几种方法,都不能删除子文件夹呢?

免费评分

参与人数 1吾爱币 +1 热心值 +1 收起 理由
AG9000 + 1 + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

 楼主| 冥界3大法王 发表于 2022-8-9 08:56
试了下面的不行啊。
// DirectoryListBox1.SetFocus;
//  DirectoryListBox1.CanFocus;
// DirectoryListBox1.Focused;
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-14 07:18

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表