Disable Split and Merge Menu Items for RO Tables
This commit is contained in:
parent
13e404f215
commit
000175c49e
@ -838,7 +838,7 @@ namespace Volian.Controls.Library
|
|||||||
// Note: the QAT menu is to the right of the V start button in the upper left
|
// Note: the QAT menu is to the right of the V start button in the upper left
|
||||||
_RibbonControl.AutoExpand = false;
|
_RibbonControl.AutoExpand = false;
|
||||||
_RibbonControl.Items[0].RaiseClick(); // initially default to HOME tab
|
_RibbonControl.Items[0].RaiseClick(); // initially default to HOME tab
|
||||||
rbnBorderlistBox.Resize+=new EventHandler(rbnBorderlistBox_Resize);
|
rbnBorderlistBox.Resize += new EventHandler(rbnBorderlistBox_Resize);
|
||||||
rbnBorderlistBox.SetupFontAndSize(6); // 6 Point Font
|
rbnBorderlistBox.SetupFontAndSize(6); // 6 Point Font
|
||||||
// added per Harry to hide refresh buttons
|
// added per Harry to hide refresh buttons
|
||||||
btnRefObjRefresh.Visible = btnTranRefresh.Visible = false;
|
btnRefObjRefresh.Visible = btnTranRefresh.Visible = false;
|
||||||
@ -846,7 +846,6 @@ namespace Volian.Controls.Library
|
|||||||
if (!VlnSettings.DebugMode)
|
if (!VlnSettings.DebugMode)
|
||||||
rbnImpWrd.Visible = false;
|
rbnImpWrd.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _RibbonControl_SizeChanged(object sender, EventArgs e)
|
void _RibbonControl_SizeChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.Size = _RibbonControl.Size;
|
this.Size = _RibbonControl.Size;
|
||||||
@ -1086,9 +1085,9 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
public void SetTableButtonsForMergeRangeSelection()
|
public void SetTableButtonsForMergeRangeSelection()
|
||||||
{
|
{
|
||||||
if (MyFlexGrid != null)
|
if (MyFlexGrid != null )
|
||||||
{
|
{
|
||||||
btnTblDgnMergeCells.Enabled = btnCmGridMergeCells.Enabled = !MyFlexGrid.IsInMergeRange();
|
btnTblDgnMergeCells.Enabled = btnCmGridMergeCells.Enabled = !MyFlexGrid.IsRoTable && !MyFlexGrid.IsInMergeRange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void SetButtonMenuEnabledDisabledOnSelection(bool setting)
|
private void SetButtonMenuEnabledDisabledOnSelection(bool setting)
|
||||||
@ -3213,9 +3212,11 @@ namespace Volian.Controls.Library
|
|||||||
btnTblDgnInsertColumn.Enabled = enableContent;
|
btnTblDgnInsertColumn.Enabled = enableContent;
|
||||||
btnTblDgnInsertRow.Enabled = enableContent;
|
btnTblDgnInsertRow.Enabled = enableContent;
|
||||||
btnTblDgnMergeCells.Enabled = enableContent;
|
btnTblDgnMergeCells.Enabled = enableContent;
|
||||||
|
btnCmGridMergeCells.Enabled = enableContent;
|
||||||
btnCmGridPaste.Enabled =
|
btnCmGridPaste.Enabled =
|
||||||
btnTblDgnPaste.Enabled = ((VlnFlexGrid.MyCopyInfo.MyCopiedFlexGrid != null) && enableContent);
|
btnTblDgnPaste.Enabled = ((VlnFlexGrid.MyCopyInfo.MyCopiedFlexGrid != null) && enableContent);
|
||||||
btnTblDgnSplitCells.Enabled = enableContent;
|
btnTblDgnSplitCells.Enabled = enableContent;
|
||||||
|
btnCmGridSplitCell.Enabled = enableContent;
|
||||||
}
|
}
|
||||||
public void SetRibbonForGridCellIndent()
|
public void SetRibbonForGridCellIndent()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user