04-22-2010 01:03 AM
Hi all,
I have subVIs which I want to call via sub-panels. The subVIs have their own custom run-time menus, which cannot be seen when called by sub-panel.
These subVIs use an event structure configured with the Menu Selection? event.
I understand the solution is to pass a reference of the top-VIs menu into the subVI. I would then have to manually configure the custom run-time menu to appear in the Top-VI UI.
I want user selections of the run time menu in the TopVI to be processed by the subVI. How do I configure my event structure to handle this? Do I use the Get Menu Selection VI? This seems incompatible with my event structure..
Cheers,
Battler.
04-22-2010 05:01 AM
I have subVIs which I want to call via sub-panels. The subVIs have their own custom run-time menus, which cannot be seen when called by sub-panel.
See the attched vi .
in this 1.Vi is the main...Hit the "open" to luanch the 2.vi in the subpanel and then right click on the graph to see the custom pop up...
Guru
04-22-2010 05:33 PM
Thanks Guru, but not quite what I was looking for.
I mean the standard run-time menu at the top such as File, Edit... etc.
04-23-2010 04:02 AM
OK now i got your question....
I would probabbly go in this approch..see the attched file.
run time menu events thats being genearted from the main vi are passed to the loaded vi in the subpanel through dynamic event handling and this passed data can be processed by the sub vi later
Guru