09-09-2016 05:15 AM
Hi,
I'm trying to understand what are those "Inserion Markers" command kinds. I don't understand why ConfigurationEntryPointInsertionMarker does not inserting Result Proccesing menu item and ConfigurationEntryPointDefaultMenuInsertionMarker does. How to force to displey only Result Proccesing item and not to display Model Options? I don't understand this help part at all 😞
CommandKind_ConfigurationEntryPointDefaultMenuInsertionMarker–(Value: 113) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that does not select a menu other than the current menu. Because most entry points do not have menu hints, this constant typically specifies all Configuration entry points.
CommandKind_ConfigurationEntryPointInsertionMarker–(Value: 112) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that selects the current menu.
CommandKind_ConfigurationEntryPoints_Set–(Value: 145) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point. When you specify commands to create menu items, use the CommandKind_ConfigurationEntryPointInsertionMarker and CommandKind_ConfigurationEntryPointDefaultInsertionMarker constants to honor menu hints entry points can specify.
http://zone.ni.com/reference/en-XX/help/370052M-01/tsuiref/reftopics/commandkinds/
09-09-2016 02:30 PM
Michal,
Review the content here about CurrentMenuName and AllMenuNames. As the help topic you pointed out mentions:
CommandKind_ConfigurationEntryPointDefaultMenuInse
CommandKind_ConfigurationEntryPointInsertionMarker–(Value: 112) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that selects the current menu.
I was able to do what you're looking for with the following code and process model sequence property changes:
End result:
Hope this helps,
Trent
09-09-2016 02:36 PM - edited 09-09-2016 02:51 PM
Also, here's a useful link for anyone who comes across this post and has no background knowledge on custom commands:
White Paper: Adding a Custom Context Menu to the LabVIEW Full Featured TestStand Operator Interface
That's the code I altered in my last post.
Best,
Trent