From 8fcdc3bde3362c95db97c570ca812051ef4174a4 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 14 Mar 2022 13:30:24 +0000 Subject: [PATCH] =?UTF-8?q?F2022-012:=20Barakah=20=E2=80=93=20for=20warnin?= =?UTF-8?q?g,=20move=20top=20lines=20of=20box=20down=20so=20don=E2=80=99t?= =?UTF-8?q?=20overlap=20underline=20of=20INIT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/vlnBox.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnBox.cs b/PROMS/Volian.Print.Library/vlnBox.cs index c43fb017..4af282d1 100644 --- a/PROMS/Volian.Print.Library/vlnBox.cs +++ b/PROMS/Volian.Print.Library/vlnBox.cs @@ -289,29 +289,30 @@ namespace Volian.Print.Library } // F2021-026: Barakah single column thick double box around Warnings // F2021-081: Barakah thick double box, adjust to add more space between boxes + // F2022-012: Barakah move the top 2 lines down slightly so they don't overlap INIT underline if at top of page. 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-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); + cb.MoveTo(left-2.5f, top + lnOff-4); // outer (lower y moves up page) + cb.LineTo(right+2.5f, top + lnOff-4); + cb.MoveTo(left + 4.5f, top + lnOff - 11); // inner + cb.LineTo(right - 4.5f, top + lnOff - 11); // bottom (double line) 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 - cb.MoveTo(left + 4.5f, top + lnOff - 6.5f); // inner box + cb.MoveTo(left + 4.5f, top + lnOff - 9.5f); // inner box cb.LineTo(left + 4.5f, bottom - 0.5f); - cb.MoveTo(right - 4.5f, top + lnOff - 6.5f); + cb.MoveTo(right - 4.5f, top + lnOff - 9.5f); cb.LineTo(right - 4.5f, bottom - 0.5f); - cb.MoveTo(left - 2.5f, top + lnOff+0.5f); // outer box + cb.MoveTo(left - 2.5f, top + lnOff-2.5f); // outer box cb.LineTo(left-2.5f, bottom - 7.5f); - cb.MoveTo(right + 2.5f, top + lnOff + 0.5f); + cb.MoveTo(right + 2.5f, top + lnOff -2.5f); cb.LineTo(right+2.5f, bottom - 7.5f); }