From a6e6392c659fa7293fef92b076f03800b794563a Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 25 Jan 2010 13:50:42 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepItem.cs | 6 +++++- PROMS/Volian.Controls.Library/StepRTB.cs | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index c1d69fce..1f196edd 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -724,7 +724,11 @@ namespace Volian.Controls.Library public bool ChangeBar { get { return _ChangeBar; } - set { _ChangeBar = value; } + set + { + _ChangeBar = value; + this.Invalidate(); + } } #endregion // Properties #region Constructors diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 39f92906..7097c639 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -989,12 +989,10 @@ namespace Volian.Controls.Library private void HandleSelectionChange() { if (_HandlingCtrlA) return; - Console.WriteLine("Before: SelectionStart={0}, SelectionLength={1}, TextLength={2}, SelectedText='{3}', SelectedRtf='{4}'", this.SelectionStart, this.SelectionLength, this.TextLength, this.SelectedText, this.SelectedRtf.Substring(SelectedRtf.Length - 10)); if (!_HandlingCtrlA && this.TextLength == this.SelectionLength && this.SelectedRtf.EndsWith("\\par\r\n}\r\n")) { _HandlingCtrlA = true; SelectAll(); - Console.WriteLine("After: SelectionStart={0}, SelectionLength={1}, TextLength={2}, SelectedText='{3}', SelectedRtf='{4}'", this.SelectionStart, this.SelectionLength, this.TextLength, this.SelectedText, this.SelectedRtf.Substring(SelectedRtf.Length - 10)); _HandlingCtrlA = false; } //HandleOverWrite();