Revised code to assure setpoint ro's were underlined and non-setpoint ro's were not underlined during printing
Revised code to assure ro's in grids are not colored red during printing Added code to override Height property of vlnPrintObject class in vlnBox class Added code to utilize BoxLeftAdj property Removed blank lines and previous debug code Added code to assure spaces between note and caution boxes are added when separate box format flag is used Added code to implement %c token in continue message of Byron/Braidwood formats Added code to utilize BoxLeftAdj property Added code to correct underline termination issue involving reference objects and transitions Changed Height property to virtual to allow overriding in inherited classes
This commit is contained in:
@@ -1179,10 +1179,11 @@ namespace Volian.Controls.Library
|
||||
afterRO = Regex.Replace(afterRO, @"(\\[^v \\]+)*\\v(\\[^v \\]+)* .*?\\v0(\\[^v \\]+)*( |$)", ""); // Remove Comments
|
||||
|
||||
// Underline all ROs, values and Units
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.UnderlineRo)
|
||||
if (isSetpoint && _MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.UnderlineRo)
|
||||
{
|
||||
// TO DO: Need to check if step text is already underlined
|
||||
rtnstr = @"\ul " + rtnstr + @"\ulnone ";
|
||||
if ((_MyItemInfo.FormatStepData.Font.Style & E_Style.Underline) == 0)
|
||||
rtnstr = @"\ul " + rtnstr + @"\ulnone ";
|
||||
}
|
||||
|
||||
// UpcaseAllRoUnits - Uppercases ALL ROs units everywhere.
|
||||
@@ -1195,7 +1196,7 @@ namespace Volian.Controls.Library
|
||||
|
||||
// Caps ROs anywhere if no lower case text follows
|
||||
// and an upper case letter immediately precedes the RO.
|
||||
|
||||
|
||||
if (isSetpoint && _MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.CapSPIfLastLower &&
|
||||
!Regex.IsMatch(afterRO, @".*(?<!\\)[a-z].*") && char.IsUpper(LastAlpha(beforeRO)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user