LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Make invisible a menu item

Hello,
i want to know if there is a simplier way to make invisible a menu item or submenu than in discard it and recreate it after.
Thanks.
0 Kudos
Message 1 of 3
(3,146 Views)

Two things I can think of:

- You can dim the menu item

- You can copy the whole menu into another menu, delete the items you want to be invisible and switch between these menus with SetPanelMenuBar.

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

You can also call DiscardMenuItem() to remove the menu item completely, but then you will have to re-create it if you want to add it back.

Bilal Durrani
NI
Message 3 of 3
(3,119 Views)