diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 5c8dd4c6..7aa9cd58 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -481,7 +481,6 @@ namespace Volian.Controls.Library public void RefreshDisplay(bool activeMode) { if (IsExperimenting) return; - //Volian.Base.Library.HWndCounter.GetWindowHandlesForCurrentProcess(this.Handle, "RefreshDisplay 1"); ActiveMode = activeMode; OnAdjustTableWidth(this, new StepRTBTableWidthEventArgs(true)); //Volian.Base.Library.HWndCounter.GetWindowHandlesForCurrentProcess(this.Handle, "RefreshDisplay 2"); @@ -875,7 +874,7 @@ namespace Volian.Controls.Library private void SetUpStepRTB() { DetectUrls = false; - SpellCheckStatus = false; + SpellCheckStatus = false; this.Height = 10; // initialize the height to 10, the default height was too big for the cells in grid tables BorderStyle = System.Windows.Forms.BorderStyle.None; this.ScrollBars = RichTextBoxScrollBars.None; @@ -1148,12 +1147,29 @@ namespace Volian.Controls.Library string indentStr = @"\fi" + match.Groups[1].Value + @"\li" + match.Groups[2].Value; Rtf = Rtf.Replace(@"\pard", @"\pard" + indentStr); } + // B2017-048, B2017-052, B2017-055 ROs sometimes have two start tokens which make them uneditable. + newRtf = newRtf.Replace(""); + // return new Point(mcStart.Count, mcEnd.Count); + //} public void SetTableGridCellRTFPrefix(Font myfont) { if (_FormatFont == null) @@ -1192,8 +1208,8 @@ namespace Volian.Controls.Library { try { - base.WndProc(ref m); - } + base.WndProc(ref m); + } catch (Exception ex) { } @@ -1575,6 +1591,8 @@ namespace Volian.Controls.Library #region TextAndContentsEvents void StepRTB_TextChanged(object sender, EventArgs e) { + //if (Rtf.Contains("