MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 524

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag