MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE



  • If you want to set the position or size of the component to an exact value, 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.

  • You can specify a text font, including its FontName, FontWeight, FontAngle,
    FontSize, and FontUnits properties. For details, see the previous topic, “Edit Text”
    on page 6-32, and for a programmatic approach, the section “How to Set Font
    Characteristics” on page 10-28.


Pop-Up Menu

To create a pop-up menu (also known as a drop-down menu or combo box) with items
one, two, three, and four, as shown in this figure:


  • Specify the pop-up menu items to be displayed by setting the String property to the
    desired items. Click the

Free download pdf