LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically trigger a menu item tag selected event?

I am trying to trigger a menu item selected event using built-in vi's. I want my Handle Menu vi to handle the case where the user checks on a boolean control as well as slected the menu option. I don't want to use POSTMESSAGE with acceleration key combination. Are there any built-in vi's which can "post" such a message?
0 Kudos
Message 1 of 3
(4,214 Views)
Actually, unless there's more to you application, you don't need to post anything anywhere. If you think about it, the way menus work is that the user selects one, LV tells you which one was selected and your code goes off and does something based on that input.

All you need to do is have the checkbox logically "in parallel" with the menu selection mechanism so either occurance will trigger the something that you want done.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(4,214 Views)
I have a similar situation and understand why adding a message to the menu queue would be an elegant solution to the problem.
I have lots of menu bar selections in my program, and I would like to set up a button bar like most applications now have. To do this using the "in parallel" way becomes a ratsnets of wires and would take up a lot of window space.
I have attached a file that is a good example of how to solve this problem with Event Structures in LabVIEW 6.1. It doesn't take up much additional diagram space and it can be quickly and easily reconfigured.

It would be nice if future versions of LabVIEW had a more integrated button bar.

Matt
Message 3 of 3
(4,214 Views)