Don't Change Selection if the mouse is down.

Don't hide the grid tools for RO Tables
Disable individual methods for RO Tables on the Grid Tool Ribbon and Context Menu (Copy, Paste, Insert, Remove)
Don;t allow edit mode if IsRoTable.
This commit is contained in:
Rich
2016-03-02 21:03:08 +00:00
parent a1deb2a0ff
commit 526214e0b5
3 changed files with 15 additions and 7 deletions

View File

@@ -834,6 +834,7 @@ namespace Volian.Controls.Library
OnSetMenu(this, new StepRTBMenuEventArgs(inPsi?"PSI":"OpenContextMenu"));
_ContextMenuStripChanged = false;
CorrectSelectionAtEndOfLine();
_MouseDown = true;
}
void StepRTB_MouseUp(object sender, MouseEventArgs e)
{
@@ -1512,6 +1513,7 @@ namespace Volian.Controls.Library
}
private void HandleSelectionChange()
{
if (_MouseDown) return;
if (_HandlingCtrlA) return;
if (!_HandlingCtrlA && this.TextLength == this.SelectionLength && this.SelectedRtf.EndsWith("\\par\r\n}\r\n"))
{