LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can ATTR_VISIBLE work for menuBar Items.

I am trying to make my menuBar configurable based upon the contents
of an init file. Is it possible to make menuItems visible or hidden
by using SetMenuBarAttribute?

Is there anyway to accomplish this?
0 Kudos
Message 1 of 2
(2,830 Views)
Hi ejv11,

Is it possible to make menuItems visible or hidden by using SetMenuBarAttribute?
No, i don't think it's possible. Maybe others have a way to do it.
You can dimm menu items though.


Is there anyway to accomplish this?

what i did was to recreate a new menu bar everytime i load a new file for my case.

MenuBarHandle = NewmenuBar (PanelHandle);
Menu1 = New Menu (MenuBarHandle, "File", -1);
NewMenuItem (MenuBarHandle, Menu1, "New", -1, 0, FunctionNew, 0);

Hope this helps.

Regards
AL
0 Kudos
Message 2 of 2
(2,827 Views)