MATLAB Creating Graphical User Interfaces

(ff) #1
Use Coordinates to Place Components

The status bar at the bottom of the GUIDE Layout Editor displays:


  • Current Point — The current location of the mouse relative to the lower left corner of
    the grid area in the Layout Editor.

  • Position — The Position property of the selected component is a vector: [distance
    from left, distance from bottom, width, height], where distances are relative to the
    parent figure, panel, or button group.


Here is how to interpret the coordinates in the status bar and rulers:

6 Lay Out a UI Using GUIDE

Free download pdf