From ae7b8dbcf080efa34938ee5e2a8abcf2e1dc3826 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 1 Nov 2021 11:09:59 +0000 Subject: [PATCH] F2021-081: More space between two boxes around the Warning Message --- PROMS/Volian.Print.Library/vlnBox.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnBox.cs b/PROMS/Volian.Print.Library/vlnBox.cs index c5afe49e..c43fb017 100644 --- a/PROMS/Volian.Print.Library/vlnBox.cs +++ b/PROMS/Volian.Print.Library/vlnBox.cs @@ -288,19 +288,20 @@ namespace Volian.Print.Library cb.LineTo(right - 3.6f, bottom +1f); } // F2021-026: Barakah single column thick double box around Warnings + // F2021-081: Barakah thick double box, adjust to add more space between boxes private static void DrawDoubleHlsBoxThick(PdfContentByte cb, float top, float bottom, float left, float right) { float lineThickness = 3; float lnOff = 1f * vlnPrintObject.SixLinesPerInch; cb.SetLineWidth(lineThickness); // top (double line) - cb.MoveTo(left, top + lnOff-4); - cb.LineTo(right, top + lnOff-4); - cb.MoveTo(left + 4.5f, top + lnOff - 8); + cb.MoveTo(left-2.5f, top + lnOff-1); // outer (lower y moves up page) + cb.LineTo(right+2.5f, top + lnOff-1); + cb.MoveTo(left + 4.5f, top + lnOff - 8); // inner cb.LineTo(right - 4.5f, top + lnOff - 8); // bottom (double line) - cb.MoveTo(left, bottom - 3); - cb.LineTo(right, bottom - 3); + cb.MoveTo(left-2.5f, bottom - 6); + cb.LineTo(right+2.5f, bottom - 6); cb.MoveTo(left + 4.5f, bottom+ 1); cb.LineTo(right - 4.5f, bottom+ 1); // sides @@ -308,10 +309,10 @@ namespace Volian.Print.Library cb.LineTo(left + 4.5f, bottom - 0.5f); cb.MoveTo(right - 4.5f, top + lnOff - 6.5f); cb.LineTo(right - 4.5f, bottom - 0.5f); - cb.MoveTo(left, top + lnOff - 2.5f); // outer box - cb.LineTo(left, bottom - 4.5f); - cb.MoveTo(right, top + lnOff - 2.5f); - cb.LineTo(right, bottom - 4.5f); + cb.MoveTo(left - 2.5f, top + lnOff+0.5f); // outer box + cb.LineTo(left-2.5f, bottom - 7.5f); + cb.MoveTo(right + 2.5f, top + lnOff + 0.5f); + cb.LineTo(right+2.5f, bottom - 7.5f); } private void DrawAsteriskTopBottom(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin, ref float top, ref float bottom, float left, VE_Font vef)