MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guida Utente Pagina 524

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 759
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 523
11 Lay Out a Programmatic GUI
figure and 10 percent of the figure height from the bottom. As the figure is
resized the panel retains these proportions.
The following statements add two push buttons to the panel with handle
ph.ThePosition property of each component within a panel is interpreted
relative to the panel.
pbh1 = uicontrol(ph,'Style','pushb utton','String','Button 1',...
'Units','normalized',...
'Position',[.1 .55 .8 .3]);
pbh2 = uicontrol(ph,'Style','pu shbutton','String','But ton 2',...
'Units','normalized',...
'Position',[.1 .15 .8 .3]);
See “Push Button” on page 11-25 for more information about adding push
buttons.
Button Group
The followi ng statement creates a button group with handle /jointfilesconvert/387265/bgh. Use a button
group to exclusively manage radio buttons and toggle buttons.
/jointfilesconvert/387265/bgh = uibuttongroup('Parent',fh,'T itle','My Button Gr oup',...
'Position',[.1 .2 .8 .6]);
11-36
Vedere la pagina 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 758 759

Commenti su questo manuale

Nessun commento