Add Components to the GUIDE Layout Area
In this section...
“Place Components” on page 6-12
“User Interface Controls” on page 6-18
“Panels and Button Groups” on page 6-39
“Axes” on page 6-44
“Table” on page 6-48
“ActiveX Component” on page 6-59
“Resize GUIDE UI Components” on page 6-61Place Components
The component palette at the left side of the Layout Editor contains the components that
you can add to your UI.NoteSee “Create Menus for GUIDE Apps” on page 6-77 for information about adding
menus to a UI. See “Create Toolbars for GUIDE UIs” on page 6-94 for information about
working with the toolbar.To place components in the GUIDE layout area and give each component a unique
identifier, follow these steps:(^1) Display component names on the palette.
a On the MATLAB Home tab, in the Environment section, click Preferences.
b In the Preferences dialog box, click GUIDE.
c Select Show Names in Component Palette, and then click OK.
(^2) Place components in the layout area according to your design.
- Drag a component from the palette and drop it in the layout area.
- Click a component in the palette and move the cursor over the layout area. The
cursor changes to a cross. Click again to add the component in its default size, or
click and drag to size the component as you add it.
6 Lay Out a UI Using GUIDE