MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelská příručka Strana 162

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 759
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 161
6 Lay Out a GUIDE GUI
If Max-Min is less than or equal to 1, the edit text component admits only a
single line of input. If you specify a component width that is too small to
accommodate the specified string, MATLAB software displays only part of
thestring.Theusercanusethearrowkeystomovethecursorthroughthe
entire string. On all platforms, when the user enters a single-line text box
via the Tab key, the entire contents is highlighted and the editing cursor is
at the end (right side) of the string.
Ifyouwanttosetthepositionorsizeofthecomponenttoanexactvalue,
then modify its
Position property. See “Locate and Move Components” on
page 6-83 and “Resize Components” on page 6-86 for details.
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.
Tip To find out what fonts are available, type uisetfont at the M ATLAB
prompt; a dialog displays containing a list box from which you can select
and preview available fonts. When you select a fon t, its name and other
characteristics are returned in a structure, from which you can copy the
FontName string and paste it into the Property Inspector. Not all fonts
listed may be available to users of your GU I on their systems.
Static Text
To create a static text component w ith text Select a data set,asshown
in this figure:
6-48
Zobrazit stránku 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 758 759

Komentáře k této Příručce

Žádné komentáře