MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Bedienungsanleitung Seite 392

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 500
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 391
10 Lay Out a Programmatic UI
10-60
calling inputdlg, which is a dialog that allows you to enter text strings. Here is an
example that creates static text and sets the font properties.
f = figure('Position',[300 300 385 285]);
txt1 = uicontrol(f,...
'Style','text',...
'String',inputdlg('String','Static Text'),...
uisetfont,'Position',[50 200 150 40]);
The inputdlg dialog box appears first.
After you enter a string and click OK, the uisetfont dialog box opens for you to set font
characteristics for displaying the string.
Seitenansicht 391
1 2 ... 387 388 389 390 391 392 393 394 395 396 397 ... 499 500

Kommentare zu diesen Handbüchern

Keine Kommentare