LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable or disable an Item in run-time shortcut menu

In my VI, I use a table control. and I create a run-time shortcut menu for it. The Items is "Modify" and "Add New". Now I want to disable Item "Add new" some times. So is it possible to get the shortcut menu ref. in order to disable "Add New" Item?

0 Kudos
Message 1 of 3
(3,161 Views)

Hi Song,

 

you get the shortcut menu ref in the "Menu activation" event. With this reference you can use the function "Set Menu Item Info"…

Best regards,
GerdW


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

Hello,

 

  Is there a way to disable the "right click" short cut menu in the header? I do not want the short cut menu active in the header. I only want the shortcut menu working in the "body" of the table, where the data is located.

Regards,


Kaspar
0 Kudos
Message 3 of 3
(2,891 Views)