This commit is contained in:
Kathy Ruffing 2010-01-12 15:26:22 +00:00
parent d00dc0749e
commit a31cfa31a8
3 changed files with 18 additions and 4 deletions

View File

@ -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;

View File

@ -117,9 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="superTooltipRibbon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="btnCut.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
@ -133,6 +130,9 @@
2CVVWYKhQwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="superTooltipRibbon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="btnInsRO.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -142,6 +142,9 @@
hNwGBmaHAP5n4G8q6gFdoZLjBpE7j5KJdaRlAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="superTooltipRibbon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="btnListUsers.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8