LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling ctrl-z in EXE of LV app

I am building an executable and installer of an application with LabVIEW 7.1 app builder. When I run the program, pressing ctrl-z will undo any action that I have done EVEN THE CALLS TO THE SUB-VIs!!!! For example my program has different user interface VIs including introduction screen, configuration screen and measurement screen. If I move to the configuration screen from introduction screen and press ctrl-z the configuration screen is closed and the screen returns to the introduction screen. This is a very serious problem that I am facing and I don't know if it is another bug embedded in LabVIEW or just a feature that can be turned off. I have already reported two error using this message board I hope this is not the third. As usual any inputs or comments are greatly appreciated.

P.S. I know that LabVIEW runtime creates an ini file for every executable file created by app builder with the same name as the executable. I know we can set different parameters in there so that the LabVIEW runtime would behave differently. For example I noticed 2 window title bars where displayed on the Windows task bar whenever an executable was running. I think the first is LV runtime and the other the actual user interface VI. To turn this off one needs to add this to the ini file: "HideRootWindow=True". I am wondering if there is such a parameter for turning the ctrl-z off.

0 Kudos
Message 1 of 4
(3,236 Views)
Ctrl-Z is undo and to remove it, I think all you have to do is delete it from the run-time menu. Copy the default menu into the custom one and delete the items you don't want.
Message 2 of 4
(3,226 Views)

Hi Nariman,

What Dennis said is correct.  To access the Run Time Menu, select the Edit menu and select "Run Time Menu..."  From the top pull down menu, select Custom.  In the Item Type field, select Application Item>>File>>Entire Menu.  This pastes the entire menu as your custom menu.  Click on the + button to set up for another custom menu selection.  Then, do the same thing (Application Item>>File>>Entire Menu) for the Edit Menu.  When that one is displayed in the box to the left, select "Undo" and "Redo" and delete each of them.  Continue to select the Entire Menu for each of the other menus so that you will have all the menu options except for the Undo/Redo commands.  Once removed from the menu, they should be disabled, including the Ctrl + z shortcut.  Let me know if you have any additional questions!

Chris R.
Applications Engineer
National Instruments

Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,198 Views)
Thanks for the replies guys. I never thought about editing the menu bars. Very Smart! I guess I freaked out when I saw this a little too much Smiley Tongue. thanks for the support.

Nariman
0 Kudos
Message 4 of 4
(3,195 Views)