B2026-086 Have Shortcut Keys for adding an RNO auto-work instead of having to press a button after shortcut key
This commit is contained in:
1 parent
f663e4f956
commit
72359319a4
1 file changed
+17
-3
@@ -3512,10 +3512,24 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "InsRNO":
|
case "InsRNO":
|
||||||
displayMenu = ((actable & E_AccStep.AddingRNO) > 0) && btnCMInsRNO.Enabled;
|
//B2026-086 Have Shortcut Keys for adding a RNO auto-work instead of having to press a button after shortcut key
|
||||||
|
displayMenu = false;
|
||||||
LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingRNO,"RNO"); // B2018-014 Inform user that they cannot add the specified step type
|
LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingRNO,"RNO"); // B2018-014 Inform user that they cannot add the specified step type
|
||||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsRNO);
|
|
||||||
break;
|
if (((actable & E_AccStep.AddingRNO) > 0) && btnCMInsRNO.Enabled)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
btnCMInsRNO.SubItems["cmbtnRNOType"].RaiseClick();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsRNO);
|
||||||
|
displayMenu = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
case "InsSubStps":
|
case "InsSubStps":
|
||||||
displayMenu = ((actable & E_AccStep.AddingSub) > 0) && btnCMInsSubStps.Enabled;
|
displayMenu = ((actable & E_AccStep.AddingSub) > 0) && btnCMInsSubStps.Enabled;
|
||||||
LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingSub,"Sub-step"); // B2018-014 Inform user that they cannot add the specified step type
|
LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingSub,"Sub-step"); // B2018-014 Inform user that they cannot add the specified step type
|
||||||
|
|||||||
Reference in new issue
Block a user