This commit is contained in:
@@ -170,6 +170,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public void SetBackColor()
|
||||
{
|
||||
if (MyStepItem == null || MyStepItem.MyStepPanel == null) return;
|
||||
BackColor = _MyItemInfo.ItemAnnotationCount == 0 ? MyStepItem.MyStepPanel.InactiveColor : Color.FromArgb(255, 255, 128);
|
||||
}
|
||||
private string _origRTF;
|
||||
@@ -982,9 +983,19 @@ namespace Volian.Controls.Library
|
||||
#endregion
|
||||
#region Selection Handlers
|
||||
bool _AdjustingSelection = false;
|
||||
private bool _ProcessingDelete;
|
||||
private bool _ProcessingDelete;
|
||||
private bool _HandlingCtrlA = false;
|
||||
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();
|
||||
//vlnStackTrace.ShowStackLocal("HandleSelectionChangeStack", 1, 10);
|
||||
bool startingValue = _AdjustingSelection;
|
||||
|
Reference in New Issue
Block a user