This commit is contained in:
Kathy Ruffing 2010-01-25 13:50:42 +00:00
parent 5f239397f6
commit a6e6392c65
2 changed files with 5 additions and 3 deletions

View File

@ -724,7 +724,11 @@ namespace Volian.Controls.Library
public bool ChangeBar public bool ChangeBar
{ {
get { return _ChangeBar; } get { return _ChangeBar; }
set { _ChangeBar = value; } set
{
_ChangeBar = value;
this.Invalidate();
}
} }
#endregion // Properties #endregion // Properties
#region Constructors #region Constructors

View File

@ -989,12 +989,10 @@ namespace Volian.Controls.Library
private void HandleSelectionChange() private void HandleSelectionChange()
{ {
if (_HandlingCtrlA) return; 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")) if (!_HandlingCtrlA && this.TextLength == this.SelectionLength && this.SelectedRtf.EndsWith("\\par\r\n}\r\n"))
{ {
_HandlingCtrlA = true; _HandlingCtrlA = true;
SelectAll(); 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; _HandlingCtrlA = false;
} }
//HandleOverWrite(); //HandleOverWrite();