02-24-2012 02:59 PM
Hi,
I've created several custom runtime shortcut menus for controls (graphs and arrays) in LV2011, which work fine in the development environment, and they also work fine in the .exe application when I run it from the location where it was originally assembled with the application builder. However, when I install the application to another folder (installer created by the application builder), it reverts to the default runtime menu. This is also true if I copy the 'Build' folder containing the original .exe application file to another location. Tried copying the .rtm file to both the install folder and the Data subfolder, this does not help. Any idea what's going on? Do I need to copy the menu files somewhere else, or set a path?
thanks,
Dan
Solved! Go to Solution.
02-24-2012 04:36 PM
To answer my own question... if I place the .rtm file (shortcut menu definitions for front-panel controls) in a folder which has the same relative path to the installed executable as the original .rtm does to the original executable - it works. Awkward, but at least there is a workaround. NI, please fix this!
02-24-2012 04:53 PM
This is a known problem that they are working on - maybe SP1...
Mike...
02-24-2012 04:55 PM
Thanks for the update, Mike. The final (and acceptable, for now) workaround I've found, is to save each custom menu with its control rather than one .rtm file serving multiple controls.
03-14-2012 11:06 AM
Here is how to save the run time menu with a control
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/customizing_shortcut_menus_statically/