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:
@@ -1292,7 +1292,7 @@ namespace Volian.Controls.Library
|
||||
btnTblDgnAdjustSize.Checked = false;
|
||||
ToggleTableDesignButtons(true);
|
||||
}
|
||||
rtabTableGridTools.Visible = tmpGridItm != null && !tmpGridItm.MyFlexGrid.IsRoTable;
|
||||
rtabTableGridTools.Visible = tmpGridItm != null;
|
||||
// If no longer on a table (grid) or the newly selectd table is an RO table
|
||||
// then select the Home tab (since the Table tab is not visable)
|
||||
if ((!(MyEditItem is GridItem) && rtabTableGridTools.Checked)) // || ((MyEditItem is GridItem) && !rtabTableGridTools.Visible))
|
||||
@@ -3030,9 +3030,14 @@ namespace Volian.Controls.Library
|
||||
|
||||
public void ToggleTableDesignButtons(bool enable)
|
||||
{
|
||||
bool enableContent = enable;
|
||||
if (MyFlexGrid != null && MyFlexGrid.IsRoTable) enableContent = false;
|
||||
btnTblDgnAlignText.Enabled = enable;
|
||||
btnTblDgnCopy.Enabled = enable;
|
||||
btnTblDgnRemove.Enabled = enable;
|
||||
btnTblDgnCopy.Enabled = enableContent;
|
||||
btnTblDgnRemove.Enabled = enableContent;
|
||||
btnCmGridInsert.Enabled = enableContent;
|
||||
btnCmGridCopy.Enabled = enableContent;
|
||||
btnCmGridRemove.Enabled = enableContent;
|
||||
//btnTblDgnGridStyle.Enabled = enable;
|
||||
//rbTblBorder.Enabled = enable;
|
||||
rbnBorderlistBox.Enabled = enable;
|
||||
@@ -3040,11 +3045,11 @@ namespace Volian.Controls.Library
|
||||
btnTblNoBorder.Enabled = enable;
|
||||
btnTblOutline.Enabled = enable;
|
||||
btnTblInside.Enabled = enable;
|
||||
btnTblDgnInsertColumn.Enabled = enable;
|
||||
btnTblDgnInsertRow.Enabled = enable;
|
||||
btnTblDgnInsertColumn.Enabled = enableContent;
|
||||
btnTblDgnInsertRow.Enabled = enableContent;
|
||||
btnTblDgnMergeCells.Enabled = enable;
|
||||
btnCmGridPaste.Enabled =
|
||||
btnTblDgnPaste.Enabled = ((VlnFlexGrid.MyCopyInfo.MyCopiedFlexGrid != null) && enable);
|
||||
btnTblDgnPaste.Enabled = ((VlnFlexGrid.MyCopyInfo.MyCopiedFlexGrid != null) && enableContent);
|
||||
btnTblDgnSplitCells.Enabled = enable;
|
||||
}
|
||||
public void SetRibbonForGridCellIndent()
|
||||
|
Reference in New Issue
Block a user