LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

handle runtime menu in subvi event

I am passing the runtime menu reference to a subvi event structure for processing the top-level runtime menu in the event case. I already have a registered case to handle any change in the top level vi control values. Since, I'm passing a runtime menu reference to the subvi, I initially thought I can handle the runtime menu in the subvi event. When I add an event, runtime menu is not a choice when setting the event up. The event setup does show "shortcut menu" as a selection but this must be for a context menu or the like.
 
Thx ahead of time,
richjoh
0 Kudos
Message 1 of 3
(2,804 Views)
Hi Richjoh,

what you should do is pass the VI-refnum into the sub-vi, and register there for menu events! A menu reference, does not cover a FP-object so LV has no events for it.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 3
(2,798 Views)

TonP Thanks,

I can't seem to remember the class hierarchy when I need to register events. I pass the VI reference and I'm able to handle the runtime menu from the subvi.

Thx.

0 Kudos
Message 3 of 3
(2,778 Views)