MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guia do Utilizador Página 543

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 759
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 542
Compose and Code GUIs with Interactive Tools
Note Each of the three following align examples starts with these unaligned
push buttons and repositions them in different ways. In practice, when you
create b uttons with
uicontrol and do not specify a Position, their location is
always
[20 20 60 20] (in pixels). That is, if you keep creating them with
default positions, they lie on top of one another.
Align Compon ents Horizon tally. The follow ing statement moves the push
buttons horizontally to the right of their bounding box. It does not alter their
vertical positions. The figure shows the original bounding box.
align([b1 b2 b3],'Right','None');
Align Com ponents Horizontally While Distributing Them Vertically.
The follow ing statement moves the push buttons horizontally to the center o f
their bounding box and adjusts their vertical placement. The
'Fixed' option
makes the distance between the boxes uniform. Specify the distance in points
(1 point = 1/72 inch). In this example, the distance is seven points. The push
buttons appear in the center of the original bounding box. The bottom push
button remains at the bottom of the original bounding box.
align([b1 b2 b3],'Center','Fixed', 7);
11-55
Vista de página 542
1 2 ... 538 539 540 541 542 543 544 545 546 547 548 ... 758 759

Comentários a estes Manuais

Sem comentários