MATLAB Creating Graphical User Interfaces

(ff) #1
line text box via the Tab key, the entire contents is highlighted and the editing cursor
is at the end of the text.


  • If you want to set the position or size of the component to an exact value, then modify
    its Position property.

  • You specify the text font to display in the edit box by typing the name of a font residing
    on your system into the FontName entry in the Property Inspector. On Microsoft®
    Windows® platforms, the default is MS Sans Serif; on Macintosh and UNIX®
    platforms, the default is Helvetica.


TipTo find out what fonts are available, type uisetfont at the MATLAB prompt; a
dialog displays containing a list box from which you can select and preview available
fonts. When you select a font, its name and other characteristics are returned in a
structure, from which you can copy the FontName and paste it into the Property
Inspector. Not all fonts listed may be available on other systems.

Static Text


To create a static text component with text Select a data set, as shown in this figure:


Add Components to the GUIDE Layout Area
Free download pdf