07-06-2012 07:14 AM - edited 07-06-2012 07:19 AM
The attached file includes a sub-vi (Dropdown Menu) with its wrapper code isolated from the rest of the program and used as the main vi (Dropdown Ring).
In the main vi, there is a control that is a 1-D array of doubles named Frequencies. This is also a user input on the main program's front panel. I want to disable the Allow default run-time shortcut menus option, but to still provide the user an intuitive way to delete elements from the array.
I've thought of having an array of buttons next to the Freq. control that has its size linked. Then pressing the relevant button (maybe that has an X on it) will delete the corresponding Freq. element. So far, my attempts at this have been remarkably unfruitful!
I'm uploading the vi's without my above attempts, so you can see the code that works. Is anyone able to provide a solution, or even just pointers/ideas to get me heading in a better direction?
There are a few 'extra' controls on the main vi's front panel, but these are mainly for debugging purposes.
Attachment: (LabVIEW 8.5)
07-06-2012 08:58 AM