12-19-2011 04:36 PM
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.
Solved! Go to Solution.
12-19-2011 06:36 PM
CLOSED, its working...thanks!