procedure ShowRWLabel(var RWLbl: TRedrawedLabel);
var
i: Integer;
begin
for i:= 0 to RWLbl.TotalItems - 1 do begin
if (RWLbl.Parts[i].Shadow <> nil) then
RWLbl.Parts[i].Shadow.Show();
RWLbl.Parts[i].Main.Show();
end;
end;
// ... поднял выше, а то Shadow лейбл перекрывал главный
if (tFlags and FS_SHADOW <> 0) then begin
Result.Parts[d].Shadow:= TLabel.Create(pParent);
Result.Parts[d].Shadow.Autosize:= false;
Result.Parts[d].Shadow.Font:= tmpFont;
Result.Parts[d].Shadow.Font.Color:= ShadowColor;
Result.Parts[d].Shadow.SetBounds(tLeft + sdDiffX, tTop + sdDiffY, tWidth, tHeight);
Result.Parts[d].Shadow.Transparent:= true;
Result.Parts[d].Shadow.Caption:= tText2;
Result.Parts[d].Shadow.Parent:= pParent;
Result.Parts[d].DiffX:= sdDiffX;
Result.Parts[d].DiffY:= sdDiffY;
end;
Result.Parts[d].Main:= Tlabel.Create(pParent);
Result.Parts[d].Main.Autosize:= false;
Result.Parts[d].Main.Font:= tmpFont;
Result.Parts[d].Main.SetBounds(tLeft, tTop, tWidth, tHeight);
Result.Parts[d].Main.Transparent:= true;
Result.Parts[d].Main.Caption:= tText2;
//...