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:
John Jenko 2019-04-17 19:52:00 +00:00
parent 644e289561
commit c30518c4fe
3 changed files with 20 additions and 1 deletions

View File

@ -809,6 +809,19 @@ namespace VEPROMS.CSLA.Library
} }
} }
#endregion #endregion
#region PlaceAtLeftMargin
private LazyLoad<bool> _PlaceAtLeftMargin; // F2019-033 only use the Left Margin plus any Top message margin
[Category("Continue Msg")]
[DisplayName("Flag to position at left margin")]
[Description("Flag to position at left margin")]
public bool PlaceAtLeftMargin
{
get
{
return LazyLoad(ref _PlaceAtLeftMargin, "@PlaceAtLeftMargin");
}
}
#endregion
#region Message #region Message
private LazyLoad<string> _Message; private LazyLoad<string> _Message;
[Category("Continue Msg")] [Category("Continue Msg")]

View File

@ -2819,7 +2819,13 @@ namespace Volian.Print.Library
} }
} }
if (!PageBreakOnStep) 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 else
MyPageHelper.TopMessage = null; MyPageHelper.TopMessage = null;
} }