界面库

升级
This commit is contained in:
JianjunLiu
2023-10-20 17:19:01 +08:00
parent e47352f843
commit 667772a463
5 changed files with 28 additions and 18 deletions
+1 -1
View File
@@ -4951,7 +4951,7 @@ type TRegKey = class
@param(vn)(string) value 名字 %%
**}
if not FHandle then return -1;
if not(ifstring(vn))then return -1;
if not(ifstring(vn) or ifnil(vn))then return -1;
return RegDeleteValueA(FHandle,vn);
end
function DeleteKeyA(vn);
+23 -3
View File
@@ -29,7 +29,7 @@ function intersectrect(rec1,rec2,irec);
function bitcombination(s,v,f);
function IsTextUTF8(str);
function exportjsonformat(d,tbw,ct);
function get_resource_by_name(n);
//****************************
///////////////////
function ParserCommandLine(s); //解析命令行参数
@@ -3643,9 +3643,29 @@ begin
end
return "";
end
function get_resource_by_name(n);
begin
global g_w_tfm_resource;
return g_w_tfm_resource[n];
end
function uinit();
begin
global g_w_tfm_resource;
g_w_tfm_resource := array();
try
getglobalcache("@@tsl-resource@@",rs);
for i,v in rs do
begin
if ifstring(i) and ifstring(v) then
begin
g_w_tfm_resource[lowercase(i)] := v;
end
end
except
end
end
initialization
uinit();
end.
//////////////////////暂时没用到的类型///////////////////////////////////////
@@ -2353,20 +2353,6 @@ begin
end
function Sinitlib();
begin
global g_w_tfm_resource;
g_w_tfm_resource := array();
try
getglobalcache("@@tsl-resource@@",rs);
for i,v in rs do
begin
if ifstring(i) and ifstring(v) then
begin
g_w_tfm_resource[lowercase(i)] := v;
end
end
except
end
types := array( //"tpropertytype",
"tpropertynatural",
"tpropertyinteger",