MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 523

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 522
Add Components to a Programmatic GUI
Panel
The following statement creates a panel w ith handle ph.Useapaneltogroup
components in the GUI.
ph = uipanel('Parent',fh,'Title',' My Panel',...
'Position',[.25 .1 .5 .8]);
The Parent property specifies the handle fh of the parent figure. You can also
specify the parent as a panel or button group.
The
Title property labels the panel as My Panel.
The statement assumes the default
TitlePosition property, which is
lefttop.
The
Units property is used to interpret the Position property. This panel
assumes the default
Units property, normalized. This enables the panel to
resize automatically if the figure is resized. See documentation for the figure
ResizeFcn property for more inform ation about resizing.
The
Position property specifies the location and size of the panel. In this
example, the panel is 50 percent of the width of the figure and 80 percent of
its height. It is positio ned 25 percent of the f igure width from the left of the
11-35
Vue de la page 522
1 2 ... 518 519 520 521 522 523 524 525 526 527 528 ... 758 759

Commentaires sur ces manuels

Pas de commentaire