RichTextBox pseudo caret when it doesn't have focus
This commit is contained in:
@@ -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)
|
||||
//{
|
||||
|
Reference in New Issue
Block a user