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:
parent
644e289561
commit
c30518c4fe
Binary file not shown.
@ -809,6 +809,19 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#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
|
||||
private LazyLoad<string> _Message;
|
||||
[Category("Continue Msg")]
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user