Use a simpler method to hide the psuedo caret
This commit is contained in:
@@ -729,15 +729,16 @@ namespace Volian.Controls.Library
|
||||
trackerHC++;
|
||||
/* if (trackerHC>20)*/ Console.WriteLine("HideCaret {0}", trackerHC);
|
||||
//Volian.Base.Library.vlnStackTrace.ShowStack("HideCaret: StepRTB: {0}", _MyStepRTB.MyItemInfo.ItemID);
|
||||
if (_MyStepRTB.SelectionLength == 0)
|
||||
{
|
||||
tmrCaret.Enabled = false;
|
||||
PnlCaret.Visible = false;
|
||||
}
|
||||
else
|
||||
HideTheCaret();
|
||||
if (_MyStepRTB.SelectionLength > 0)
|
||||
_MyStepRTB.HideSelection = true; // bug fix B215-147 we used to insert a highlight command - caused issues with IsDirty() where false dirtyness was reported
|
||||
}
|
||||
}
|
||||
public void HideTheCaret()
|
||||
{
|
||||
tmrCaret.Enabled = false;
|
||||
PnlCaret.Visible = false;
|
||||
}
|
||||
private void tmrCaret_Tick(object sender, EventArgs e)
|
||||
{
|
||||
PnlCaret.Visible = !PnlCaret.Visible;
|
||||
|
Reference in New Issue
Block a user