03-31-2011 08:03 AM
I wish disable menu item when user choice menuNode1Item1 in 'Tree: Shortcut Menu Selection' event
If I put 'Set Menu Item Info' in 'Tree: Shortcut Menu Activation?' event works, but is not useful for me.
If see MenuRef with probe refNumbers are identical in boot events.
Why 'Tree: Shortcut Menu Selection' doesn't have 'MenuRef' ?
Is a labview bug?
Thanks
Regards
03-31-2011 08:45 AM
Hi,
you really want to enable/disable items in the "Menu Activation" event, because that's the time when the menu is drawn!
In the "Menu Selection" event the menu is already closed as the user has made it's choice. So you simply cannot get a ref for an already closed menu - and it would be rather senseless to change the look of the menu...
03-31-2011 09:31 AM
Thanks.
I could make a boolean array for menu state set enable/disable on activate menu, but manage this array could be heavy for many tree items added dinamically!