LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone have success with LoadMenuBar using embedded UIR's for the new LW/CVI 7.0?

For the new LW/CVI 7.0, the LoadPanel seems to work correctly from embedded UIRs within the executable when the Target Settings option for Embed Project UIRs is activated. However, LoadMenuBar calls fail when using embedded UIRs. Has anyone gotten this to work correctly (for both LoadPanel and LoadMenuBar) with embedded UIRs in the executable for LW/CVI 7.0??
0 Kudos
Message 1 of 6
(3,617 Views)
You raise a good point. The Embedded UIR feature is only offered for panels, not menubars. If you have menubars and you want to eliminate the need to distribute .UIR files with your application, you need to use the "UI to Code Converter" utility (accessible via the Tools menu in the UI Editor).

Sorry about that..

Luis Gomes
NI
0 Kudos
Message 2 of 6
(3,617 Views)
Will this be fixed in 7.1?
0 Kudos
Message 3 of 6
(3,617 Views)
This should be clear in the Help documentation and it isn't. I would also like to see it fixed but at least tell the user what to expect - I wasted hours on this!
0 Kudos
Message 4 of 6
(3,617 Views)
P.S. It appears to work in debug mode.
0 Kudos
Message 5 of 6
(3,617 Views)
This problem can be avoided by not calling LoadMenuBar(). If you have already called LoadPanel for the panel that has a menu bar associated with it, the menu bar is already in memory. On the "Edit Panel" window for panel containg the menu bar, select the menu bar to associate with this panel from the "Menu Bar:" control. Otherwise you will have to install the uir with the exe. LoadMenuBar apparently does not look in the exe for the uir.
Arno
Smiths Aerospace
0 Kudos
Message 6 of 6
(3,617 Views)