Hide the Step Properties Transition tab when on a Figure substep (B2014-093)
Disable the Transition, Hard Space, Symbol, and Indent buttons on the Insert Ribbon when on a Figure substep (B2014-093)
This commit is contained in:
@@ -990,6 +990,13 @@ namespace Volian.Controls.Library
|
||||
btnInsNote.Enabled = true;
|
||||
btnInsCaut.Enabled = true;
|
||||
}
|
||||
if (MyItemInfo.IsFigure)
|
||||
{
|
||||
btnInsTrans.Enabled = btnCMTransition.Enabled = false;
|
||||
btnCMSymbol.Enabled = btnSymbols.Enabled = false;
|
||||
btnCMHardSpace.Enabled = btnInsHrdSpc.Enabled = false;
|
||||
btnIndent.Enabled = false;
|
||||
}
|
||||
// if in Calvert Alarms Condition/Response, disable insert of Cautions and Notes
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
||||
btnInsCaut.Enabled = btnInsNote.Enabled = btnCMInsCaution.Enabled = btnCMInsNote.Enabled = setting && !MyItemInfo.IsInCalvertConditionResponse;
|
||||
@@ -1407,7 +1414,8 @@ namespace Volian.Controls.Library
|
||||
if (btnInsSubstep.Enabled) GalleryForSubTypes(MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList.Substep, sd, btnInsSubstep, (int)E_FromType.Step, btnCMInsSubStps, docontextmenus);
|
||||
if (btnInsRNO.Enabled) GalleryForSubTypes(MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList.RNO, sd, btnInsRNO, 0, btnCMInsRNO, docontextmenus);
|
||||
|
||||
btnInsTrans.Enabled = btnCMTransition.Enabled = btnInsRO.Enabled = btnCMRO.Enabled = true;
|
||||
btnInsTrans.Enabled = btnCMTransition.Enabled = !MyItemInfo.IsFigure;
|
||||
btnInsRO.Enabled = btnCMRO.Enabled = true;
|
||||
|
||||
// if in Calvert Alarms Condition/Response, disable insert of Cautions and Notes
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
||||
|
Reference in New Issue
Block a user