MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 524

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 758 759

Commentaires sur ces manuels

Pas de commentaire