diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index a76be837..7b41d6ef 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -76,7 +76,13 @@ namespace Volian.Controls.Library //_InitializingRTB = true; DisplayText vlntxt = new DisplayText(_MyItemInfo, EpMode, VwMode); _origDisplayText = vlntxt; +#if(DEBUG) + // Use Times New Roman for Debugging + Font = new Font("Times New Roman", 14, FontStyle.Regular); //Font = _origDisplayText.TextFont.WindowsFont; +#else + Font = _origDisplayText.TextFont.WindowsFont; +#endif Text = ""; // Initialize text before add text //if (_MyStepItem.MyID == 168) @@ -432,7 +438,7 @@ namespace Volian.Controls.Library else { AddLinkLocation(myDisplayLinkElement.Text, myDisplayLinkElement.Link); - _SelectedRtfSB.Append(@"\f0\fs20 "); + _SelectedRtfSB.Append(@"\f0 "); _SelectedRtfSB.Append(myDisplayLinkElement.Text); _SelectedRtfSB.Append(@"\v "); _SelectedRtfSB.Append(myDisplayLinkElement.Link); diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 65fdaaf9..65df648d 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -35,7 +35,7 @@ namespace Volian.Controls.Library _MyStepRTB = value; if (value != null) { - Console.WriteLine(string.Format("StepTabRibbon: In set of MyStepRTB, Selected Text = {0}", MyStepRTB.SelectedText)); + //Console.WriteLine(string.Format("StepTabRibbon: In set of MyStepRTB, Selected Text = {0}", MyStepRTB.SelectedText)); _ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMRtfEdit); //_MyStepRTB.SelectionChanged += new EventHandler(MyStepRTB_SelectionChanged); _MyStepRTB.MouseUp += new MouseEventHandler(MyStepRTB_SelectionChanged); @@ -117,7 +117,7 @@ namespace Volian.Controls.Library } void MyStepRTB_SelectionChanged(object sender, EventArgs e) { - Console.WriteLine(string.Format("StepTabRibbon: In MyStepRTB_SelectionChanged, Selected Text = {0}",MyStepRTB.SelectedText)); + //Console.WriteLine(string.Format("StepTabRibbon: In MyStepRTB_SelectionChanged, Selected Text = {0}",MyStepRTB.SelectedText)); SetButtonAndMenuEnabling(); } void btnInsStep_Click(object sender, EventArgs e)