F2022-074 Added logic to support {LJ} in the step tab definition so left justify the tab text and allow a more exact alignment of the high level step tab under the section title in Beaver Valley’s intro sections.

This commit is contained in:
John Jenko 2022-11-18 16:19:48 +00:00
parent 1b04680396
commit e6100f8ac0

View File

@ -4744,6 +4744,13 @@ namespace VEPROMS.CSLA.Library
if (tbformate != null && tbformate != "") tbformat = tbformate; if (tbformate != null && tbformate != "") tbformat = tbformate;
} }
} }
// F2022-074 added a Left Justify token to the step tab definition (used in Beaver Valley)
if (tbformat.Contains("{LJ}"))
{
tbformat = tbformat.Replace("{LJ}","").TrimStart();
if (cltext != null && cltext.Contains("{LJ}"))
cltext = cltext.Replace("{LJ}", "").TrimStart();
}
_MyTab.Text = tbformat; _MyTab.Text = tbformat;
_MyTab.CleanText = cltext != null ? cltext : tbformat; _MyTab.CleanText = cltext != null ? cltext : tbformat;
} }