This commit is contained in:
parent
5f239397f6
commit
a6e6392c65
@ -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
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user