08-29-2013 09:33 AM
Hello,
On this page http://digital.ni.com/public.nsf/allkb/17ABD66EA8DAA0A986256FDA0067641E I can see how to use VI Server to detect a change in a control's value from another VI. I would like to do the same but to detect the User Menu Selection event.
Does anybody know if this is possible please?
Thanks,
Martin
08-29-2013 10:01 AM - edited 08-29-2013 10:18 AM
Sure, and you'd use the same technique that's discussed in the KnowledgeBase article you linked. If you're looking for a shortcut menu the user activates on the pane, then you'd use the Controls[] reference and you would just change one of the events that you're registering to be the "Shortcut Menu Selection (User)" event. If you're looking for the actual "Menu Selection (User)" event then you'd use the VI reference coming from the Open VI reference.
--Ryan S.
08-29-2013 10:34 AM
Ahh, schoolbody error! I read the knowledgebase and thought it wouldn't let me access the menu event but I didn't check for myself.
Thanks for the help!