MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE


In some cases, one or more of the selected components may lie outside its parent's
boundary. Such a component is not visible in the Layout Editor but can be selected by
dragging a rectangle that encloses it or by selecting it in the Object Browser. Such a
component is visible in the active UI.

See “View the GUIDE Object Hierarchy” on page 6-119 for information about the
Object Browser.

NoteTo select multiple components, they must have the same parent. That is, they must
be contained in the same figure, panel, or button group.

Use Arrow Keys to Move Components


Select one or more components that you want to move, then press and hold the arrow
keys until the components have moved to the desired position. Note that the components
remain children of the figure, panel, or button group from which you move them, even if
they move outside its boundaries.

Set the Component's Position Property


Select one or more components that you want to move. Then open the Property Inspector
from the View menu or by clicking the Property Inspector button.

1 In the Property Inspector, scroll to the Units property and note whether the current
setting is characters or normalized. Click the button next to Units and then
change the setting to inches from the pop-up menu.
Free download pdf