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

  • 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 582
Design Programmatic GUIs for Cross-Platform Compatibility
Use a Specific Font Name
You can specify an actual font name (such as Times or Courier) for the
FontName property. However, doing so may cause your GUI to appear
differently than you intended when run on a different computer. If the target
computer does not have the specified font, it substitutes another font that
may no t look good in your GU I or may not be the standard font used for G U Is
on that system. Also, different versions of the same named font may have
different size requirements for a given set of characters.
Standard Background Color
MATLAB software uses the standard system background color of the system
on which the GUI is running as the default component background color. This
color varies o n different computer systems, e.g., the standard shade of gray
on the PC differs from that on UNIX system, and may not match the default
GUI background color.
You can make the GUI background color match the default component
background color. The following statements retrieve the default component
background color a nd assign it to the figure.
defaultBackground = get(0,'defaultUicontrolBackgroundColor ');
set(figurehandle,'Color',defaultBac kground)
The figure Color property specifies the figure’s background color.
11-95
Zobrazit stránku 582
1 2 ... 578 579 580 581 582 583 584 585 586 587 588 ... 758 759

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

Žádné komentáře