MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE


Once you have defined a UI component in the layout area, selecting it automatically
shows it in the Property Inspector. If the Property Inspector is not open or is not
visible, double-clicking a component raises the inspector and focuses it on that
component.

The components listed in the following table have additional considerations; read
more about them in the sections described there.

If You Are Adding... Then...
Panels or button groups See “Add a Component to a Panel or
Button Group” on page 6-20.
Menus See “Create Menus for GUIDE UIs” on
page 6- 91
Toolbars See “Create Toolbars for GUIDE UIs” on
page 6- 108
ActiveX controls See “ActiveX Component” on page
6-65.

See “Grid and Rulers” on page 6-85 for information about using the grid.
3 Assign a unique identifier to each component. Do this by setting the value of the
component Tag properties. See“Assign an Identifier to Each Component” on page
6-23 for more information.
4 Specify the look and feel of each component by setting the appropriate properties.
The following topics contain specific information.


  • “User Interface Controls” on page 6- 23

  • “Panels and Button Groups” on page 6- 44

  • “Axes” on page 6- 50

  • “Table” on page 6- 54

  • “ActiveX Component” on page 6- 65


This is an example of a UI in the Layout Editor. Components in the Layout Editor are
not active.
Free download pdf