02-03-2006 04:49 AM
02-03-2006 06:23 AM
11-29-2011 06:51 PM - edited 11-29-2011 07:00 PM
I ran into the same problem recently using LabVIEW 2010. It is true that when you create a custom Run-Time Shortcut Menu for an array in LabVIEW you cannot find "Insert Element Before" or "Delete Element" from the Application Item list.
However, you can still add them! The way to do this is to create User Items and enter the correct special text in the Item Tag field. In this case try creating the following items using the Shortcut Menu Editor:
- Item Type: User Item - Item Name: Insert Element Before - Item Tag: APP_SC_INSERT_ELEMENT_BEFORE
- Item Type: User Item - Item Name: Delete Element - Item Tag: APP_SC_DELETE_ELEMENT
Voila, it works when you right-click anywhere in the array!
(I found these special string values by using an event structure to view the ItemTag values when the "Shortcut Menu Selection (App)" events fired for an array control with the Default shortcut menu. This was tested using LabVIEW 2010.)
04-26-2012 09:18 AM
Mr. Hooks,
Thanks for the information it was very helpful. The problem that I have now is that the Item Name is being replaced with the default menu Item Name.
Does anyone know a way for me to use the special item tag with my own custom Item Name? Attached images demonstrate the problem.
Thanks,
Lonnie