界面库

修正
This commit is contained in:
JianjunLiu
2023-04-26 17:08:10 +08:00
parent 14e4839144
commit 147a737e12
5 changed files with 19 additions and 3 deletions
+15
View File
@@ -1644,6 +1644,21 @@ type tdirviewer = class(tcustomcontrol)
end
FTree.PopupMenu := mus;
FTree.OnSelChanged := thisfunction(treenodeselchanged);
ftree.OnDblClick := function(o,e)
begin
//echo "dblcock\r\n";
nd := ftree.CurrentNode;
if not nd then return ;
ins := Fnodeinfos[nd.handle];
if ins.isfile then
begin
fn := ins.fullname();
if 1= parseregexpr("\\.(?:tsl|tsf|txt|js|py|css|xml|html|htm|c|cpp|cc|cmd|tfm|bat|h)$",fn,"i",m,mp,ml) then
begin
editnode();
end
end
end
selnowork();
end
function treenodeselchanged(o,e);
+1 -1
View File
@@ -1943,7 +1943,7 @@ begin
o := class(TDComponent);
o.RegestorClassItems(its);
its := array();
o.class(TPropGrid);
o := class(TPropGrid);
for i,v in ini.ReadSectionValues("properties") do //属性
begin
if v then