F2019-033 Added Flag to position the top continue message at the left margin

F2019-033 Added flag to position top continue message at the left margin
F2019-033 Added logic to support format flag to position the top continue message at the left margin
This commit is contained in:
2019-04-17 19:52:00 +00:00
parent 644e289561
commit c30518c4fe
3 changed files with 20 additions and 1 deletions

View File

@@ -2819,7 +2819,13 @@ namespace Volian.Print.Library
}
}
if (!PageBreakOnStep)
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Top.Margin ?? 0, yTopMargin + 0.1F, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
{
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);
}
else
MyPageHelper.TopMessage = null;
}