MATLAB Creating Graphical User Interfaces

(ff) #1
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-15.
Menus See “Create Menus for GUIDE Apps”
on page 6-77
Toolbars See “Create Toolbars for GUIDE UIs”
on page 6-94
ActiveX controls See “ActiveX Component” on page 6-
59.

See “Grid and Rulers” on page 6-71 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-
18 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-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


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


Add Components to the GUIDE Layout Area
Free download pdf