MATLAB Creating Graphical User Interfaces

(ff) #1

Grouping Components


You can group two or more components together to modify them as a single unit. For
example, you might group a set of components after finalizing their relative positions, so
that you can move them without changing that relationship.


To group a set of components, select them in the canvas, and then select Grouping >
Group in the Arrange section of the toolstrip.


The Grouping tool also provides functionality for these common tasks:



  • Ungroup all components in a group — Select the group. Then select Grouping >
    Ungroup.

  • Add a component to a group — Select the component and the group. Then select
    Grouping > Add to Group.

  • Remove a component from a group — Select the component. Then select Grouping >
    Remove from Group.


Arranging Components in Containers


When you drag a component into a container such as a panel, the container turns blue to
indicate that the component is a child of the container. This process of placing
components into containers is called parenting.


Lay Out Apps in App Designer
Free download pdf