NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

disable run selected steps and loop on selected step

Solved!
Go to solution

Reading through the post I am able to disable Run Selected step from Execute Menu.

Still can't find how to disable Run Selected step from drop down menu that shows on right clicking any step in sequence pane. The commands that I tried for CVI user interface are:

 

static int RebuildMenuBar(int menuBar)  

{

CAObjHandle menuItem = 0;
TSUIObj_CommandConnection runSelectedSteps = 0;

 

TSUI_ExecutionViewMgrConnectCommand (gMainWindow.executionViewMgr, &errorInfo, menuItem,
TSUIConst_CommandKind_RunSelectedSteps, 0, 0, &runSelectedSteps);

TSUI_CommandSetEnabled (runSelectedSteps, &errorInfo, VFALSE);

 

CA_DiscardObjHandle(menuItem);
CA_DiscardObjHandle(runSelectedSteps);

}

 

 

TIA.

*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 2
(2,780 Views)
Solution
Accepted by topic author lvrat

CLOSED, its working...thanks!

*************************************************
CLD
*************************************************
0 Kudos
Message 2 of 2
(2,774 Views)