MATLAB Creating Graphical User Interfaces

(Barry) #1

10 Lay Out a Programmatic UI


The following steps illustrate how to use the Align Distribute tool to arrange components
in a UI. The tool provides the same options as the align function. discussed in “Use the
align Function” on page 10-51.

1 Select Tools > Edit Plot.
2 Select the components that you want to align.
3 Select Tools > Align Distribute Tool.
4 In the Vertical panel, choose the third Distribute option (the same as the align
function Middle VerticalAlignment option). In the Horizontal panel, choose the
first Align option (the same as the align function Left HorizontalAlignment
option)
5 Click Apply.

The buttons align as shown.
Free download pdf