09-02-2014 11:04 AM
I am running a complicated program (Program.vi) with many nested x-controls. A near bottom level x-control (NestLevel_5.xctl) uses shortcut menu activation to pop a special menu on a right click. The functionality works correctly in the top level.vi (Program.vi). Unfortunately, it does not quite work in the .exe (Program.exe) that I build from Program.vi. In Program.exe, the right click gives the special menu over most of the highly nested xcontrol (NestLevel_5.xctl), but not over the portion of the x-control that nests yet another x-control (NestLevel_6.xctl). Over this bottom-most x-control (NestLevel_6.xctl), the Program.exe gives the standard menu for right clicks.
I have built an .exe for a tester for this isolated near-bottom level x-control (NestLevel_5_tester.exe), and it functions correctly. Likewise, .exe's function correctly for all tester routines that increase the nesting, i.e. NestLevel_4_tester.exe, NestLevel_3_tester.exe, etc. . The functionality only fails in my topmost routine Program.exe.
Any thoughts? I have tried a mass compile without success.
Joel
09-02-2014 11:32 AM
I had a similar issue come up in a built EXE. In the Build Specifications, make sure the menu file is Always Included in the Source Files section. See if that helps.
09-02-2014 11:41 AM
I'm sorry, but I don't know what you mean by the "menu file". I'm just using the "Insert Menu Items Function" which takes an array of strings. And note that the .exe basically works, including the menu activation. It is just that something is disabling the special menu activation over a small region of where it should be activated.
Joel