MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 380

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 500
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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)
Vista de pagina 379
1 2 ... 375 376 377 378 379 380 381 382 383 384 385 ... 499 500

Comentarios a estos manuales

Sin comentarios