From 9c506629ec00e1653fa986207511601a60599d06 Mon Sep 17 00:00:00 2001 From: JianjunLiu Date: Wed, 29 Mar 2023 10:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8-=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正纯黑色的问题 --- designer/utslsynmemo.tsf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/designer/utslsynmemo.tsf b/designer/utslsynmemo.tsf index ca0742f..ff4d442 100644 --- a/designer/utslsynmemo.tsf +++ b/designer/utslsynmemo.tsf @@ -82,6 +82,10 @@ type thighlitcolor = class(tcomponent) end end end + function transblk(c); + begin + return (c=0)?1:c; + end function setcolors(cls); begin cgd := false; @@ -91,7 +95,7 @@ type thighlitcolor = class(tcomponent) begin v.changed := false; bc := cls["×ÖÌå"]["back"]; - v.color := (bc=0)?1:bc; + v.color := transblk(bc); if v.changed then begin cgd .|= 2; @@ -101,9 +105,9 @@ type thighlitcolor = class(tcomponent) v.changed := false; if i in array("Ñ¡Öб³¾°","µ±Ç°Ðб³¾°") then begin - v.color := cls[i]["back"]; + v.color := transblk(cls[i]["back"]); end else - v.color := cls[i]["font"]; + v.color := transblk(cls[i]["font"]); if v.changed then begin if i="×ÖÌå" then