Locate and Move Components

You can locate or move components in one of the following ways:

Another topic that may be of interest is

Use Coordinate Readouts

Coordinate readouts indicate where a component is placed and where the mouse pointer is located. Use these readouts to position and align components manually. The Position readout shows the position of the selected component as the vector, [x y width height]. These values are displayed in units of pixels, regardless of the coordinate units you select for the component.

The Current Point readout displays the current mouse position in pixels.

The size of this push button is 101-by-38 pixels. The lower left corner of the button is located at x,y = (50,260). The mouse pointer is located at x,y = (156,255).

When you select multiple components, the Position readout displays numbers for x, y, width and height only if the objects have the same respective values; in all other cases it displays 'MULTI'.

Drag Components

Select one or more components that you want to move, then drag them to the desired position and drop them. You can move components from the figure into a panel or button group. You can move components from a panel or button group into the figure or into another panel or button group.

The position of the cursor when you drop the components also determines the parent of all the selected components. Look for the highlight as described in Add 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 or by selecting it in the Object Browser. Such a component is visible in the active UI.

See View the GUIDE Object Hierarchy for information about the Object Browser.

    Note   To 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.

  2. Click the + sign next to Position. The Property Inspector displays the elements of the Position property.

  3. If you have selected

    • Only one component, type the x and y coordinates of the point where you want the lower-left corner of the component to appear.

    • More than one component, type either the x or the y coordinate to align the components along that dimension.

  4. Reset the Units property to its previous setting, either characters or normalized.

    Note   Setting the Units property to characters (nonresizable UIs) or normalized (resizable UIs) gives the UI a more consistent appearance across platforms. See Cross-Platform Compatible Units for more information.

Was this topic helpful?