Creating Graphical User Interfaces |
Working with Components in the Layout Area
This topic provides basic information about selecting, moving, copying, and deleting components in the layout area.
Other topics that may be of interest are
Selecting Components
You can select components in the layout area in the following ways.
Note You can select multiple components only if they have the same parent. Use the Object Browser to determine the child objects of a figure, panel, or button group. Viewing the Object Hierarchy -- The Object Browser tells you how. |
Moving Components
Select one or more components that you want to move, then do one of the following:
The position of the cursor when you drop the components determines the parent of all the selected components. Look for the highlight as described in Adding a Component to a Panel or Button Group.
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. It is visible, however, in the active GUI.
Copying, Cutting, and Clearing Components
Use standard menu and pop-up menu commands, toolbar icons, keyboard keys, and shortcut keys to copy, cut, and clear components.
Copying. Copying places a copy of the selected components on the clipboard. A copy of a panel or button group includes its children.
Cutting. Cutting places a copy of the selected components on the clipboard and deletes them from the layout area. If you cut a panel or button group, you also cut all its children.
Clearing. Clearing deletes the selected components from the layout area. It does not place a copy of the components on the clipboard.
Pasting and Duplicating Components
Pasting. Use standard menu and pop-up menu commands, toolbar icons, and short-cut keys to paste components. GUIDE pastes the contents of the clipboard to the location of the last mouse click. It positions the upper left corner of the contents at the mouse click
Consecutive pastes place each copy to the lower right of the last one.
Duplicating. Select one or more components that you want to duplicate, then do one of the following:
Adding Components to the Layout Area | Running the GUI |
© 1994-2005 The MathWorks, Inc.