C2018-005: Change Step Type button on the ribbon should be disabled when on Procedure or Section in editor

This commit is contained in:
Kathy Ruffing 2018-05-30 13:02:35 +00:00
parent 128c3c6685
commit 8c84a8b96d

View File

@ -1476,6 +1476,8 @@ namespace Volian.Controls.Library
// B2016-237 added context menu item to change image size
btnCMImgSz.Enabled = MyEditItem.MyItemInfo.IsFigure && (MyEditItem.MyItemInfo.MyContent.MyImage != null || MyEditItem.MyItemInfo.MyContent.Text.ToUpper().Contains("#LINK"));
if (MyItemInfo.IsSupInfoPart) btnInsAfter.Enabled = btnInsAftH.Enabled = btnInsBefore.Enabled = btnInsBefH.Enabled = false;
// C2018-005: disable the change step type button when on procedure or section:
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection) btnCMChgStep.Enabled = btnChgTyp.Enabled = false;
}
public void SetButtonAndMenuEnabling(bool docontextmenus)
{