This commit is contained in:
2009-01-27 15:50:55 +00:00
parent 68998360df
commit c063a11a1a
2 changed files with 5 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ namespace Volian.Controls.Library
this.KeyUp += new KeyEventHandler(StepRTB_KeyUp);
this.KeyDown += new KeyEventHandler(StepRTB_KeyDown);
this.TextChanged += new EventHandler(StepRTB_TextChanged);
//this.SelectionChanged += new EventHandler(DisplayRTB_SelectionChanged);
this.SelectionChanged +=new EventHandler(StepRTB_SelectionChanged);
}
void MyConfig_PropertyChanged(object sender, PropertyChangedEventArgs e)
@@ -207,10 +207,11 @@ namespace Volian.Controls.Library
MyLinkText = null;
}
}
public bool inRoAdd = false;
void StepRTB_SelectionChanged(object sender, EventArgs e)
{
Console.WriteLine("SelectionStart {0}, SelectionLength {1}", SelectionStart, SelectionLength);
if (inRoAdd)
Console.WriteLine("SelectionStart {0}, SelectionLength {1}", SelectionStart, SelectionLength);
if (!SelectionProtected && MyLinkText != null) MyLinkText = null;
}
#endregion