MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Betriebsanweisung Seite 523

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 759
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 522
1 2 ... 518 519 520 521 522 523 524 525 526 527 528 ... 758 759

Kommentare zu diesen Handbüchern

Keine Kommentare