Creating Graphical User Interfaces Previous page   Next Page

Layout Editor Preferences

You can set preferences for the GUIDE Layout Editor by selecting Preferences from the File menu. The preferences are grouped in different locations:

Confirmation Preferences

The GUIDE Layout Editor provides two confirmation preferences. You can choose whether you want to display a confirmation dialog box when you activate a GUI or when you export a GUI.

In the MATLAB Preferences dialog box, click General -> Confirmation Dialogs to access the Layout Editor confirmation preferences. Look for the word GUIDE in the Tool column.

Prompt to Save on Activate.   When you activate a GUI by clicking the Run button , a dialog box informs you of the impending save and lets you choose whether or not you want to continue.

Prompt to Save on Export.   When you select Export from the File menu, a dialog box informs you of the impending save and lets you choose whether or not you want to continue.

Backward Compatibility Preference

Ensure Backward Compatibility (-v6).   GUI FIG-files that are created or modified with MATLAB 7.0 or a later MATLAB version, are not automatically compatible with Version 6.5 and earlier versions. To make a FIG-file, which is a kind of MAT-file, backward compatible, you must check the MAT-file Ensure backward compatibility (-v6) preference in the Preferences dialog box under General -> MAT-Files.

All Other Preferences

The GUIDE Layout Editor provides several other preferences. In the MATLAB Preferences dialog box, click GUIDE to access the remaining Layout Editor preferences. They are shown in the following figure.

layout editor preferences

The following topics describe the preferences in this dialog:

Show Toolbar.   Displays the following toolbar in the Layout Editor window.

Show Names in Component Palette.   Displays both icons and names in the component palette. When unchecked, the icons alone are displayed in a two-column array.

Show File Extension in Window Title.   Displays the filename with its file extension in the Layout Editor window title. If unchecked, only the filename is displayed.

Show File Path in Window Title.   Displays the full file path in the Layout Editor window title. If unchecked, the file path is not displayed.

Add Comments for Newly Generated Callback Functions.   When this preference is checked, GUIDE includes the comment lines shown in the following example to all callbacks that are added to the M-file. Some callbacks are added automatically because their associated components are part of the original GUDE template that you chose. Other commonly used callbacks are added automatically when you add components. You can also add callbacks explicitly by selecting them from View Callbacks on the View menu or on the component's context menu.

If this preference is unchecked, GUIDE includes comments only for callbacks that are automatically included to support the original GUIDE template. No comments are included for any other callbacks that are added to the M-file.


Previous page  Displaying the GUI Layout Editor Context Menus Next page

© 1994-2005 The MathWorks, Inc.