MATLAB Runtime Server    

Disabling Default Menu Options Selectively

You may want to take advantage of the built-in MATLAB tools for tasks such as printing the contents of figure windows that your application uses. This section describes how to include selected functionality from MATLAB figure menus in your own application.

You must disable these default menu options:

To use a menu bar on your own figure window that is a modification of the default menu bar:

  1. Close all figures that may have been open from previous MATLAB work in the current session.
  2. Prepare a modified version of the default menu bar by navigating to your application's working directory and executing these commands.
  3. In your application, issue this command to open a new figure window with the customized menu.

You can also make other modifications using MATLAB layout tools, such as changing the callbacks for menu options that are not disabled, and adding new menu options of your own. See "Creating GUIs" for details on using the layout tools.


  Preventing Command Window Input/Output Providing a Way to Exit the Application