Change VlnSvgPageHelper TopMessageR(s) to support multiple vlnText items.

Corrected logic so that the tab is properly formatted in the continue message.  Prior to this change the Tab incorrectly underlined the space following the tab
This commit is contained in:
Rich
2014-08-18 18:39:36 +00:00
parent dec6a46080
commit 49ffee4bd0
2 changed files with 23 additions and 13 deletions

View File

@@ -43,11 +43,11 @@ namespace Volian.Print.Library
get { return _TopMessage; }
set { _TopMessage = value; }
}
private vlnText _TopMessageR; // Added if there are 2 messages, in AER AND RNO (for BGE)
public vlnText TopMessageR
private List<vlnText> _TopMessageRs=new List<vlnText>(); // Added if there are 2 messages, in AER AND RNO (for BGE)
public List<vlnText> TopMessageRs
{
get { return _TopMessageR; }
set { _TopMessageR = value; }
get { return _TopMessageRs; }
set { _TopMessageRs = value; }
}
private vlnText _TopMessageSub1; // BGE Alarms: in CONDITION/RESPONSE if break within substep
public vlnText TopMessageSub1
@@ -557,10 +557,13 @@ namespace Volian.Print.Library
TopMessage.ToPdf(cb, 0, ref tmp, ref tmp);
TopMessage = null; // Only output it once.
}
if (TopMessageR != null)
if (TopMessageRs != null && TopMessageRs.Count > 0)
{
TopMessageR.ToPdf(cb, 0, ref tmp, ref tmp);
TopMessageR = null; // Only output it once.
foreach (vlnText vt in TopMessageRs)
{
vt.ToPdf(cb, 0, ref tmp, ref tmp);
}
TopMessageRs = null; // Only output it once.
}
if (TopMessageSub1 != null)
{