
Adding Components to the GUI
6-33
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:
• Copy and paste the selected components as described above.
• Select
Duplicate from the Edit menu or the pop-up menu. Duplicate places
the copy to the lower right of the original.
• Right-click and drag the component to the desired location. 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” on page 6-20.
Front-to-Back Positioning
MATLAB figures maintain separate stacks that control the front-to-back
positioning for different kinds of components:
• User interface controls such as buttons, sliders, and pop-up menus
• Panels, button groups, and axes
• ActiveX controls
You can control the front-to-back positioning of components that overlap only
if those components are in the same stack. For overlapping components that
are in different stacks:
• User interface controls always appear on top of panels, button groups, axes,
and ActiveX controls they overlap.
• Panels, button groups, and axes always appear on top of ActiveX controls.
The Layout Editor provides four operations that enable you to control
front-to-back positioning. All are available from the
Layout menu, which is
shown in the following figure.
Commenti su questo manuale