Unexpected Menu Redraw Behavior if Menu Open LabWindows™/CVI™

Updated May 11, 2018

Reported In

Software

  • LabWindows/CVI 2015 Full
  • LabWindows/CVI 2017 Full

Issue Details

If I have a menu item open when I try to delete a different menu item, the menu option persists, but cannot be interacted with. 

Solution

This is a known issue and can be solved with the following workaround. 

Instead of deleting a single menu item, you can delete the full menu with the following:

DiscardMenuBar(menubarHandle);
menubarHandle = LoadMenuBar(panelHandle, "User Interface Application.uir", MENU);


However, if a message popup happens immediately after this then it will cause a run-time error. As long as the Message popup does not happen after the discard and load of the menu bar then the error does not occur.

WAS THIS ARTICLE HELPFUL?

Not Helpful