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

  • 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 379
10 Lay Out a Programmatic UI
10-48
The setpos function uses figure units to set the component Position property. First,
setpos gets and saves the Units property of the component, and sets that property to
figure units. After setting the object position, the function restores the original units of
the object.
The following steps show how to use setpos to reposition a button away from its default
position:
1
Put this statement into your UI code file, and then execute it:
btn1 = uicontrol('Style','pushbutton',...
'String','Push Me');
2
Put the following statement in your UI code file, execute it, and then drag out a
Position for object btn1.
rect = setpos(btn1)
Vue de la page 379
1 2 ... 375 376 377 378 379 380 381 382 383 384 385 ... 499 500

Commentaires sur ces manuels

Pas de commentaire