10-31-2008 09:52 AM
10-31-2008 10:38 AM
I don't think so.
What are you trying to do?
This is not a "normal" request.
10-31-2008 10:44 AM
I want to update the Enable/Disable, Checked/Unchecked states of the sub menu items before the sub menu gets displayed to the user.
10-31-2008 11:31 AM
You can handle the "Menu Activation?" (Filter) event to set the menu item info before it is displayed.
The attached VI has a custom menu. Set the "Checked?" boolean to the desired value and then activate the menu to see the effect.
10-31-2008 01:11 PM
10-31-2008 01:30 PM
Change the Item Tag string to "Item 3".
The event will be generated every time the user activates the menu. It is upto the programmer to handle specific menu items.
Another approach is to use the "Get Menu Selection" function. You can create a completely seperate loop to handle the menu items. The get menu selection function waits until the user selects a menu item or the function timeout. The difference is that this function finishes execution after the user selects a menu item. So you cannot filter the event.
The "Menu Selection Demo" example shipped with LabVIEW demonstrates the use of the "Get Menu Selection" function.