RichTextBox pseudo caret when it doesn't have focus

This commit is contained in:
Rich
2011-02-09 21:52:56 +00:00
parent c0a822d4f7
commit 41c8a90bdf
6 changed files with 113 additions and 5 deletions

View File

@@ -187,6 +187,7 @@ namespace VEPROMS
}
void frmVEPROMS_Activated(object sender, EventArgs e)
{
if (ActiveControl == tc) tc.HideCaret();
// refresh anything that pertains to external files or programs:
// if ro.fst was 'updated' from the roeditor, enable the update ro.fst values on
@@ -260,6 +261,21 @@ namespace VEPROMS
displayBookMarks.MyDisplayTabControl = tc; // allows bookmark selection to bring up steps/docs
office2007StartButton1.MouseDown +=new MouseEventHandler(office2007StartButton1_MouseDown);
//displayRO.EnabledChanged += new EventHandler(displayRO_EnabledChanged);
tc.Enter += new EventHandler(tc_Enter);
tc.Leave += new EventHandler(tc_Leave);
this.Deactivate += new EventHandler(frmVEPROMS_Deactivate);
}
void frmVEPROMS_Deactivate(object sender, EventArgs e)
{
tc.HideCaret(); // Hide the pseudo caret
}
void tc_Leave(object sender, EventArgs e)
{
tc.ShowCaret();// Show the pseudo caret
}
void tc_Enter(object sender, EventArgs e)
{
tc.HideCaret();// Hide the pseudo caret
}
//void displayRO_EnabledChanged(object sender, EventArgs e)
//{