LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling windows style menu with user events

Ok I have a menu and I am trying to have short cut buttons for some of the higher level functions.

How do you use the user events functions to access the same code that the menus use? Do I use te user events? Or is there something else I am supposed to be using?

I need examples as i cant get it to work at all.
All help will be appreciated!!!

I think I might be barking up the wrong tree here.

But fundementals are say i have a save button I also want it to use the same code that is under the save item in the menu! How do I get the button to link to the same code.

Adam
0 Kudos
Message 1 of 3
(2,583 Views)
Ok, so you have an event structure that handles menu selections, but now you want buttons to launch the same code, right?

If you can make a sub-VI of the code you want to run in both cases I would do that, and then have the sub-VI in both event cases. If not:

To get a button to fire a menu event is not possible as far as I know, but it would be easy to do it the other way around. Put the code in an event or case triggered by the button or a hidden button that you set to true when the menu selection is done (you could use the same button, but that looks a bit strange; the button would go true without anyone clicking it). If you use an event, set the value of the boolean using the value signaling property instead of a local; that way the event will fire.

A t
hird alternative is to skip the buttons and just add keyboard shortcuts to the menus...but that's not quite the same.
0 Kudos
Message 2 of 3
(2,583 Views)
Here's a question. How do i do that, to have an event structure that
handles menu selections ? For example, menu selections in Windows
Internet Explorer.
Thanks
0 Kudos
Message 3 of 3
(2,583 Views)