Added a new Bottom Continue Message location which limits the message to the bottom margin.

Changed bottom continue message to be limited by the bottom margin.  Previously the continue message overlapped the border.
This commit is contained in:
Rich 2014-02-21 12:46:09 +00:00
parent f62caf9669
commit 8ef73fe7b5
2 changed files with 5 additions and 1 deletions

View File

@ -116,7 +116,8 @@ namespace VEPROMS.CSLA.Library
EndOfText = 0,
BtwnTextAndBottom = 1,
BottomOfPage = 2,
BelowBottom1 = 3
BelowBottom1 = 3,
EndOfText2 = 5
};
[Flags]
public enum E_DocStructStyle : ulong

View File

@ -912,6 +912,9 @@ namespace Volian.Print.Library
case E_ContBottomLoc.BelowBottom1:
msg_yLocation = msg_yLocation + yBtmMarginForMsg;
break;
case E_ContBottomLoc.EndOfText2: // Like EndOfText but limited within yBottomMargin
msg_yLocation = Math.Max(msg_yLocation + yLocation - SixLinesPerInch, yBottomMargin + SixLinesPerInch);
break;
default:
Console.WriteLine("**** BOTTOM CONTINUE MESSAGE NOT CODED*****");
break;