界面库

优化树控件
This commit is contained in:
JianjunLiu
2022-08-09 16:30:11 +08:00
parent 146101a46f
commit 3d3a47f190
3 changed files with 75 additions and 5 deletions
+10 -2
View File
@@ -1768,6 +1768,7 @@ type TVclDesigner = class(tvcform)
@explan(说明) 设置当前类使用的函数名称 %%
**}
FFunctionSelecter.clean();
FFunctionSelecter.additem("(none)");
for i,vi in v do
begin
if vi in array("create","destroy","recycling","loadfromtfm") then continue;
@@ -7480,7 +7481,14 @@ type TBitmapGrid = class(TGridList)
end
end
type tnone = class()
function create();
begin
name := "(none)";
end
name;
end
type TListVariableFilter = class(TListVariable)
private
FVlist;
@@ -7547,7 +7555,7 @@ type TListVariableFilter = class(TListVariable)
vs[length(vs)] := vi;
end
end
additems(vs);
additems(array(new tnone()) union vs);
end
function create(AOwner);override;
begin
@@ -7633,7 +7641,7 @@ type TListVariable = class(TGridList)
begin
id := e.iitem;
inherited;
if id<0 then
if id<0 or (SelectedValue is class(tnone)) or (SelectedValue = "(none)") then
begin
UnSelected();
end