User`s guide

11 Lay Out a Programmatic GUI
If Max-Min is le
ss than or equal to 1, the edit text component admits only a
single line of
input. If you specify a com po ne nt width that is to o small to
accommodate t
he specified string, M ATLAB s oftware displays only part of
the string. Th
e u ser can use the arrow keys to m ove the cursor over the
entire strin
g.
The Position property specifies the location and size of the edit text
component. In this example, the edit text is 130 pixels wide and 20 high.
It is positioned 30 pixels from the left of the figure and 50 pixels from the
bottom. The statement assumes the default value of the
Units property,
which is
pixels.
Setting Fo nt Characteristics. Yo u specify the text font to display in the
edit box with the
FontName property. On Microsoft Windows platforms, the
default is
MS Sans Serif; on Macintosh and UNIX platforms, the default is
Helvetica. You can u se any system font except Symbol and Marl ett.
You can chose a text font for the edit box and set all font characteristics
at once with output from the
uisetfont GUI, which lists and previews
available fonts. When you select one of them and click OK, its name and other
characteristics a re returned in a MATLAB structure, which you can use to
set the font characteristic for the edit box. For example, to use the Century
Schoolbook font with a normal style and 9 point size, do the follow ing:
font = uisetfont
11-18