LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate run-time menu item heirarchy

Hello:

Wanted to know if someone has done this already.  I have an extensive run-time menu in one application.  I need to programmatically duplicate the heirarchy of sub-menu items (several levels of child items) of one of the menu items so that I can place that entire heirarchy underneath another menu item.  Anyone do this yet before I start?

Sincerely,

Don
Message 1 of 5
(3,322 Views)
There's an example that ships with LabVIEW that shows you how to use the menu functions to dynamically change the menubar. Open the Example Finder (Help -> Find Examples) and do a search for "menus". Open the example called "Dynamic Insert Demo".
Message 2 of 5
(3,313 Views)
I know all about inserting menu items and do it in fact in this application.  The example you show is a brute force method to do the insertion that involves string arrays of known menu items.  My menu heirarchy may not be constant and must be read. What I was trying to find out is if someone may have developed a subVI from the menu fxs that programmatically reads the entire menu heirarchy for a given meu or sub-menu item, and then inserts that heirarchy under another menu or sub-menu item. The subVI would certainly use the 'Insert Menu Items' fx.  ....Don
Message 3 of 5
(3,307 Views)
Well, you hadn't mentioned in your original message that you knew about the menu functions, so that's why I provided the example to look at. Since you know about the menu functions you pretty much know that's all you have as far as the menu functions. I guess if someone has already written a VI to do what you're looking to do they may be willing to share it with you.


0 Kudos
Message 4 of 5
(3,286 Views)
Right - this is actually not trivial to get the complicated menu heirarchy for several layers but it definitely is doable.  Yes, I am very familiar with the RT menu stuff as I am still big on using custom run-time menus as a way to not clutter up front panels when appropriate.....Don
0 Kudos
Message 5 of 5
(3,279 Views)