LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User shortcut menu enable/disable item error. Labview bug?

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

Download All
0 Kudos
Message 1 of 3
(2,999 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,995 Views)

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!

0 Kudos
Message 3 of 3
(2,990 Views)