MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE



  • If you want to set the position and size of the component to exact values, then modify
    its Position property. See “Locate and Move Components” on page 6-74 and
    “Resize GUIDE UI Components” on page 6-67 for details. The height of a pop-
    up menu is determined by the font size. The height you set in the position vector is
    ignored.


NoteThe pop-up menu does not provide for a label. Use a “Static Text” on page
6-34 component to label the pop-up menu.

List Box

To create a list box with items one, two, three, and four, as shown in this figure:
Free download pdf