C2019-044 Added RowOverride toTop Continue Message to allow us to place the top continue message on the same row as the checkoff header
C2019-044 Use the value of RowOverride to place the top continue message on the same row as the checkoff header
This commit is contained in:
@@ -2673,7 +2673,11 @@ namespace Volian.Print.Library
|
||||
// then DON'T add two lines to the yPageStart (for the top conitnue message)
|
||||
if (myMsg != null && myMsg != "" && !MyItemInfo.IsSection && !MyItemInfo.FormatStepData.PageBreakOnStep) // B2020-123
|
||||
{
|
||||
yPageStart -= 2 * SixLinesPerInch;// Allow two lines for top continue message
|
||||
// C2019-044 for BNPP put the top continue message on the same row as the Checkoff/Signoff header
|
||||
// This is done by specifing a row positon in the top continue definition in the format.
|
||||
// If the top continue messsage RowOverride is being used, don't move the yPageStart down (don't need to make room for it)
|
||||
if (docstyle.Continue.Top.RowOverride == null)
|
||||
yPageStart -= 2 * SixLinesPerInch;// Allow two lines for top continue message
|
||||
if (myMsg.IndexOf(@"%sR") > -1)
|
||||
{
|
||||
ItemInfo myAer = MyItemInfo.IsHigh ? MyItemInfo : MyItemInfo.MyParent;
|
||||
@@ -2855,7 +2859,16 @@ namespace Volian.Print.Library
|
||||
float colPos = docstyle.Layout.LeftMargin + docstyle.Continue.Top.Margin ?? 0;
|
||||
if (!docstyle.Continue.Top.PlaceAtLeftMargin) //F2019-033 when true position with respect only to the left margin
|
||||
colPos += XOffsetBox; //XOffsetbox get set when the tables, figures & equations were beyond the border and needed repositioned
|
||||
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, colPos, yTopMargin + 0.1F, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
|
||||
// C2019-044 for BNPP, put the top continue message on the same row as the checkoff/signoff heading
|
||||
// RowOverride specifies the position of the top continue message
|
||||
// For BNPP, RowOverride is set to the same row as the checkoff header is set to in the pagelist
|
||||
if (docstyle.Continue.Top.RowOverride != null)
|
||||
{
|
||||
float adjRowPosition = (float)docstyle.Layout.TopMargin - (float)docstyle.Continue.Top.RowOverride;
|
||||
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, colPos, yTopMargin + 0.1F + adjRowPosition, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
|
||||
}
|
||||
else
|
||||
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, colPos, yTopMargin + 0.1F, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
|
||||
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user