MATLAB Creating Graphical User Interfaces

(ff) #1
You can optionally enable snap-to-grid, which causes any object that is moved close to a
grid line to jump to that line. Snap-to-grid works with or without a visible grid.

Use the Grid and Rulers dialog (select Tools > Grid and Rulers) to:


  • Control visibility of rulers, grid, and guide lines on page 6-72

  • Set the grid spacing

  • Enable or disable snap-to-grid


Guide Lines


The Layout Editor has both vertical and horizontal snap-to guide lines. Components snap
to the line when you move them close to the line.

Guide lines are useful when you want to establish a reference for component alignment at
an arbitrary location in the Layout Editor.

Creating Guide Lines

To create a guide line, click the top or left ruler and drag the line into the layout area.

6 Lay Out a UI Using GUIDE

Free download pdf