MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuale Utente Pagina 380

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 500
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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)
Vedere la pagina 379
1 2 ... 375 376 377 378 379 380 381 382 383 384 385 ... 499 500

Commenti su questo manuale

Nessun commento