MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE User's Guide Page 524

  • Download
  • Add to my manuals
  • Print
  • Page
    / 759
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 758 759

Comments to this Manuals

No comments