MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuel d'utilisateur Page 392

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 500
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 391
1 2 ... 387 388 389 390 391 392 393 394 395 396 397 ... 499 500

Commentaires sur ces manuels

Pas de commentaire