LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check marks on custom run-time menus

Solved!
Go to solution

Is there a simple way to add a check mark for currently selected item on custom run-time menus?  

 

The only method I have found is to fire off of the "Shortcut Menu Activation?" event, grab the menu reference, and basically recreate the shortcut menu with the proper check marks based on boolean values.  This method just seems ... cumbersome for something that should (in theory) be fairly common. I can't help but think there is a better solution.

 

Thanks!

0 Kudos
Message 1 of 3
(3,890 Views)
Solution
Accepted by topic author BowenM

Hi Bown,

 

you can assign custom menus with the menu editor to your controls/VIs. They will be saved as rtm file.

Using the known tag names of such custom menus you can set the checkmark for your tags without rebuilding the menu on activation each time…

Best regards,
GerdW


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

Oh. I feel silly now. I missed the "checked" option in "Set Menu Item Info".  Thank you.

0 Kudos
Message 3 of 3
(3,882 Views)