RichTextBox pseudo caret when it doesn't have focus
This commit is contained in:
@@ -29,7 +29,8 @@ namespace Volian.Controls.Library
|
||||
* 4) KBR ContextMenu for table. May want it to function in a similar way to spellcheck, with
|
||||
* the contentmenu to support table options and a last item that supports existing
|
||||
* contextmenu
|
||||
* 5) RHM Copy step - including modifying SQL code to copy grid/image data.
|
||||
* 5) RHM Copy step - including modifying SQL code to copy grid/image data.
|
||||
* The Grid includes links which also need to be updated.
|
||||
* 6) RHM Selection is NOT selection, i.e. if merged cells, selection isn't selecting the 'merged'
|
||||
* i.e. parent cell.
|
||||
* 7) RHM Selecting a range can end up with uneven rows or uneven columns. We need to handle,
|
||||
@@ -197,10 +198,17 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
|
||||
void MyStepRTB_EditModeChanged(object sender, EventArgs args)
|
||||
{
|
||||
AdjustColorsForEditMode();
|
||||
}
|
||||
|
||||
private void AdjustColorsForEditMode()
|
||||
{
|
||||
if (MyStepRTB.EditMode)
|
||||
{
|
||||
MyFlexGrid.Styles["Focus"].ForeColor = MyFlexGrid.Styles["Focus"].BackColor =
|
||||
MyFlexGrid.Styles["Highlight"].ForeColor = MyFlexGrid.Styles["Highlight"].BackColor = Color.SkyBlue;
|
||||
}
|
||||
else
|
||||
{
|
||||
MyFlexGrid.Styles["Focus"].ForeColor = MyFlexGrid.Styles["Highlight"].ForeColor = Color.Black;
|
||||
@@ -587,7 +595,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public override void SetActive()
|
||||
{
|
||||
MyFlexGrid.Styles["Focus"].BackColor = MyFlexGrid.Styles["Highlight"].BackColor = Color.LightCyan;
|
||||
AdjustColorsForEditMode();
|
||||
}
|
||||
private bool _Empty = false;
|
||||
public override bool Empty
|
||||
|
Reference in New Issue
Block a user